Skip to contents

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.

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 the scoring system.

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 0, all permutations will be used.

Returns

A ScoreSum object.

Examples

pmt(
    "twosample.scoresum", scoring = "expon",
    alternative = "greater", n_permu = 0
)$test(Table2.6.2)$print()
#> 
#>  	 Two-Sample Test Based on Sum of Scores 
#> 
#> scoring: expon    type: permu(924)    method: default
#> statistic = 9.752597, p-value = 0.002164502
#> alternative hypothesis: greater