Learn R Programming

MultNonParam (version 1.3.9)

pairwiseprobabilities: Pairwise probabilities of Exceedence

Description

pairwiseprobabilities calculates probabilities of one variable exceeding another, where the variables are independent, and with identical distributions except for a location shift. This calculation is useful for power of Mann-Whitney-Wilcoxon, Jonckheere-Terpstra, and Kruskal-Wallis testing.

Usage

pairwiseprobabilities(
  shifts,
  distname = c("normal", "cauchy", "logistic"),
  taylor = FALSE
)

Value

A matrix with as many rows and colums as there are shift parameters. Row i and column j give the probability of an observation from group j exceeding one from group i.

Arguments

shifts

The offsets for the various populations, under the alternative hypothesis.

distname

The distribution of the underlying observations; normal, cauchy, and logistic are currently supported.

taylor

Logical flag forcing the approximation of exeedence probabilities using a Taylor series.

Details

Probabilities of particular families must be calculated analytically.

Examples

Run this code
pairwiseprobabilities(c(0,1,2),"normal")

Run the code above in your browser using DataLab