Learn R Programming

LearnNonparam (version 1.3.0)

AndersonDarling: Two-Sample Anderson-Darling Test

Description

Performs two-sample Anderson-Darling test on samples.

Arguments

Super classes

LearnNonparam::PermuTest -> LearnNonparam::TwoSampleTest -> LearnNonparam::TwoSampleDistributionTest -> AndersonDarling

Methods

Public methods

Inherited methods


Method new()

Create a new AndersonDarling object.

Usage

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

Examples

Run this code
pmt(
    "distribution.ad", n_permu = 0
)$test(Table2.8.1)$print()

Run the code above in your browser using DataLab