Skip to contents

Performs F statistic based one-way test on samples collected in a randomized complete block design.

Super classes

LearnNonparam::PermuTest -> LearnNonparam::RCBDTest -> RCBDOneWay

Methods

Public methods

Inherited methods


Method new()

Create a new RCBDOneWay object.

Usage

RCBDOneWay$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 RCBDOneWay object.

Examples

t <- pmt(
    "rcbd.oneway", n_permu = 5000
)$test(Table4.4.3)$print()
#> 
#>  	 One-Way Test for Equal Means in RCBD 
#> 
#> scoring: none    type: permu(5000)    method: default
#> statistic = 110241.8, p-value = 0.0598 (± 0.006572397 at 95% confidence)

t$type <- "asymp"
t
#> 
#>  	 One-Way Test for Equal Means in RCBD 
#> 
#> scoring: none    type: asymp    method: default
#> statistic = 3.121093, p-value = 0.057516