Skip to contents

Performs Friedman test on samples collected in a randomized complete block design.

Super classes

LearnNonparam::PermuTest -> LearnNonparam::RCBDTest -> Friedman

Methods

Public methods

Inherited methods


Method new()

Create a new Friedman object.

Usage

Friedman$new(type = c("permu", "asymp"), n_permu = 10000)

Arguments

type

a character string specifying the way to calculate the p-value.

n_permu

an integer indicating number of permutations for the permutation distribution. If set to 0, all permutations will be used.

Returns

A Friedman object.

Examples

t <- pmt(
    "rcbd.friedman", n_permu = 0
)$test(Table4.5.3)$print()
#> 
#>  	 Friedman Test 
#> 
#> scoring: rank    type: permu(576)    method: default
#> statistic = 28.33333, p-value = 0.04166667

t$type <- "asymp"
t
#> 
#>  	 Friedman Test 
#> 
#> scoring: rank    type: asymp    method: default
#> statistic = 7.5, p-value = 0.05755845