Plots histogram of null hypothesis (permutation/resampling) distribution, actual model fitness and cumulative p-value. Plot defaults to "greater than" or "smaller than" tests and cumulative probability in Student's t-distribution.
plotPerm(
actual,
distribution,
xlab = NULL,
side = c("greater", "smaller"),
type = "t",
ylab = NULL,
xlim,
ylim = NULL,
breaks = "Sturges",
pos,
main = NULL,
permutation_visual = "none",
curve = TRUE,
extend = 0.1,
multiple_p_shown = NULL,
show_actual_value = TRUE,
show_p = TRUE,
round_number = 4
)
Plot
Actual model fitness (e.g. Q2, AUROC or number of misclassifications)
Null hypothesis (permutation) distribution of similar metric as `actual`
Label for x-axis (e.g. 'Q2 using real value',"Q2 using distributions","BER" 'AUROC', or 'Misclassifications')
Cumulative p either "greater" or "smaller" than H0 distribution (defaults to side of median(H0))
c('t','non',"smooth","rank","ecdf")
label for y-axis
Choice of user-specified x-limits (if default is not adequate)
Choice of user-specified y-limits (if default is not adequate)
Choice of user-specified histogram breaks (if default is not adequate)
Choice of position of p-value label (if default is not adequate)
Choice of user-specified plot title
choice of showing median or mean or none
if add curve or not base on the mid
how many percenrtage of the orignical range do we start
show many p values
show the actual value on the vertical line or not
if p value is added to the figure
How many digits does it keep
data("freelive2")
actual <- sample(YR2, 1)
distribution <- YR2
plotPerm (actual, distribution)
Run the code above in your browser using DataLab