Performs Siegel-Tukey test on samples.
Super classes
LearnNonparam::PermuTest
-> LearnNonparam::TwoSampleTest
-> LearnNonparam::TwoSampleLocationTest
-> LearnNonparam::Wilcoxon
-> SiegelTukey
Methods
Method new()
Create a new SiegelTukey
object.
Usage
SiegelTukey$new(
type = c("permu", "asymp"),
alternative = c("two_sided", "less", "greater"),
n_permu = 10000,
correct = TRUE
)
Arguments
type
a character string specifying the way to calculate the p-value.
alternative
a character string specifying the alternative hypothesis.
n_permu
an integer indicating number of permutations for the permutation distribution. If set to
0
, all permutations will be used.correct
a logical indicating whether to apply continuity correction in the normal approximation for the p-value.
Examples
pmt(
"twosample.siegel",
alternative = "greater", n_permu = 0
)$test(Table2.8.1)$print()
#>
#> Siegel-Tukey Test
#>
#> scoring: Siegel-Tukey rank type: permu(252) method: default
#> statistic = 24, p-value = 0.2738095
#> alternative hypothesis: true ratio of scales is greater than 1