Learn R Programming

LearnNonparam (version 1.2.7)

KruskalWallis: Kruskal-Wallis Test

Description

Performs Kruskal-Wallis test on samples.

Arguments

Super classes

LearnNonparam::PermuTest -> LearnNonparam::KSampleTest -> KruskalWallis

Methods

Public methods

Inherited methods


Method new()

Create a new KruskalWallis object.

Usage

KruskalWallis$new(
  type = c("permu", "asymp"),
  scoring = c("rank", "vw", "expon"),
  n_permu = 10000
)

Arguments

type

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

scoring

a character string specifying the scoring system.

n_permu

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

Returns

A KruskalWallis object.

Examples

Run this code
pmt(
    "ksample.kw", type = "asymp"
)$test(Table3.2.2)$print()

t <- pmt(
    "ksample.kw", type = "permu"
)$test(Table3.2.3)$print()

t$type <- "asymp"
t

Run the code above in your browser using DataLab