Performs Ansari-Bradley test on samples.
Super classes
LearnNonparam::PermuTest
-> LearnNonparam::TwoSampleTest
-> AnsariBradley
Methods
Method new()
Create a new AnsariBradley
object.
Usage
AnsariBradley$new(
type = c("permu", "asymp"),
alternative = c("two_sided", "less", "greater"),
n_permu = 10000
)
Examples
pmt(
"twosample.ansari",
alternative = "greater", n_permu = 0
)$test(Table2.8.1)$print()
#>
#> Ansari-Bradley Test
#>
#> scoring: Ansari-Bradley rank type: permu(252) method: default
#> statistic = 13, p-value = 0.2698413
#> alternative hypothesis: true ratio of scales is greater than 1