Performs Jonckheere-Terpstra test on samples.
Super classes
LearnNonparam::PermuTest
-> LearnNonparam::KSampleTest
-> JonckheereTerpstra
Methods
Method new()
Create a new JonckheereTerpstra
object.
Usage
JonckheereTerpstra$new(
type = c("permu", "asymp"),
alternative = c("two_sided", "less", "greater"),
n_permu = 10000
)
Examples
t <- pmt(
"ksample.jt", alternative = "greater"
)$test(Table3.4.1)$print()
#>
#> Jonckheere-Terpstra Test
#>
#> scoring: none type: permu(10000) method: default
#> statistic = 145, p-value = 0.0298 (± 0.003332628 at 95% confidence)
#> alternative hypothesis: greater
t$type <- "asymp"
t
#>
#> Jonckheere-Terpstra Test
#>
#> scoring: none type: asymp method: default
#> statistic = 145, p-value = 0.0285154
#> alternative hypothesis: greater