Skip to contents

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

Methods

Public methods

Inherited methods


Method new()

Create a new Page object.

Usage

Page$new(
  type = c("permu", "asymp"),
  alternative = c("two_sided", "less", "greater"),
  n_permu = 10000
)

Arguments

type

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

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 Page object.

Examples

t <- pmt(
    "rcbd.page", alternative = "less"
)$test(Table4.4.3)

t$type <- "asymp"
t
#> 
#>  	 Page Test 
#> 
#> scoring: rank    type: asymp    method: default
#> statistic = 134, p-value = 0.01182581
#> alternative hypothesis: less