
Last chance! 50% off unlimited learning
Sale ends in
Plot permutation analysis using actual model and permutation result. This is basically a wrapper for the MUVR2::plotPerm() function using model objects to make coding nicer and cleaner.
permutationPlot(
MUVRclassObject,
permutation_result,
model = "Mid",
type = "t",
side = c("greater", "smaller"),
pos,
xlab = NULL,
xlim,
ylim = NULL,
breaks = "Sturges",
main = NULL
)
A permutation plot
A 'MUVR' class object
A permutation result. It is a list of 1 items: permutation_output
'Min', 'Mid', or 'Max'
't' (default; for Student's t) or 'non' for "non-parametric" (i.e. rank) studen'ts
'smaller' for actual lower than H0 or 'greater' for actual larger than H0 (automatically selected if not specified)
which side of actual to put p-value on
optional xlabel
optional x-range
otional y-range
optional custom histogram breaks (defaults to 'sturges')
optional plot title (or TRUE for autoname)
# \donttest{
data("freelive2")
nRep <- 2
nOuter <- 4
varRatio <-0.6
regrModel <- MUVR2(X = XRVIP2,
Y = YR2,
nRep = nRep,
nOuter = nOuter,
varRatio = varRatio,
method = "PLS",
modReturn = TRUE)
permutation_result<-H0_test(regrModel,n=10)
permutationPlot(regrModel,permutation_result)
# }
Run the code above in your browser using DataLab