Abstract class for permutation tests.
type
The way to calculate the p-value.
method
The method used.
scoring
The scoring system used.
alternative
The alternative hypothesis.
null_value
The hypothesized value of the parameter in the null hypothesis.
conf_level
The confidence level of the interval.
n_permu
The number of permutations used.
data
The data.
statistic
The test statistic.
p_value
The p-value.
estimate
The estimated value of the parameter.
conf_int
The confidence interval of the parameter.
test()
Perform test on sample(s).
PermuTest$test(...)
...
sample(s). Can be numeric vector(s) or a data.frame
or list
containing them.
A progress bar is shown by default. Use options(LearnNonparam.pmt_progress = FALSE)
to disable it.
The object itself (invisibly).
The object itself (invisibly).
plot()
Plot histogram(s) of the permutation distribution. Note that this method only works if type
is set to "permu"
.
PermuTest$plot(style = c("graphics", "ggplot2"), ...)
style
a character string specifying which package to use.
...
passed to graphics::hist.default()
or ggplot2::stat_bin()
.
The object itself (invisibly).