Skip to contents

Performs ratio mean deviance test on samples.

Super classes

LearnNonparam::PermuTest -> LearnNonparam::TwoSampleTest -> RatioMeanDeviance

Methods

Public methods

Inherited methods


Method new()

Create a new RatioMeanDeviance object.

Usage

RatioMeanDeviance$new(
  alternative = c("two_sided", "less", "greater"),
  n_permu = 10000
)

Arguments

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.

Returns

A RatioMeanDeviance object.

Examples

pmt(
    "twosample.rmd",
    alternative = "greater", n_permu = 0
)$test(Table2.8.1)$print()
#> 
#>  	 Ratio Mean Deviance Test 
#> 
#> scoring: none    type: permu(252)    method: default
#> statistic = 4.666667, p-value = 0.06349206
#> alternative hypothesis: true ratio of scales is greater than 1