mmti: Intermdiate function for calculating Mood median test. Odd...

View source: R/common.R

mmtiR Documentation

Intermdiate function for calculating Mood median test. Odd case is calculated recursively. The even-sample size question is reduced either to Fisher's exact test, or to the Gaussian approximation.

Description

Intermdiate function for calculating Mood median test. Odd case is calculated recursively. The even-sample size question is reduced either to Fisher's exact test, or to the Gaussian approximation.

Usage

mmti(u, rt, ct, exact = FALSE, alternative = "two.sided")

Arguments

u

One corner of 2x2 contingency table

rt

Row totals

ct

Column totals

exact

Logical determining whether Fisher's test or the approximate counterpart is used.

alternative

alternative, defaults to "two.sided".

Value

A list with one component, the p-value.


kolassa-dev/NonparametricHeuristic documentation built on Nov. 14, 2022, 11:25 p.m.