Learn R Programming

LearnNonparam (version 1.2.3)

ScoreSum: Two-Sample Test Based on Sum of Scores

Description

Performs sum of scores based two-sample test on samples. It is almost the same as two-sample wilcoxon rank sum test but uses more scoring systems.

Arguments

Super classes

LearnNonparam::PermuTest -> LearnNonparam::TwoSampleTest -> LearnNonparam::TwoSampleLocationTest -> ScoreSum

Methods

Public methods

Inherited methods


Method new()

Create a new ScoreSum object.

Usage

ScoreSum$new(
  scoring = c("rank", "vw", "expon"),
  alternative = c("two_sided", "less", "greater"),
  null_value = 0,
  n_permu = 10000
)

Arguments

scoring

a character string specifying which scoring system to use.

alternative

a character string specifying the alternative hypothesis.

null_value

a number indicating the true value of the location shift.

n_permu

an integer indicating number of permutations for the permutation distribution. If set to zero (default) then all permutations are used.

Returns

A ScoreSum object.

Examples

Run this code
pmt(
    "twosample.scoresum", scoring = "expon",
    alternative = "greater", n_permu = 0
)$test(Table2.6.2)$print()

Run the code above in your browser using DataLab