tau_crit_table: Rapidly generate a table of critical values of tau or an...

Description Usage Arguments Value Examples

View source: R/tau-crit-table.R

Description

Rapidly generate a table of critical values of tau or an equivalent test statistic.

Usage

1
tau_crit_table(n, alpha, incl.len = TRUE, stat = "tau")

Arguments

n

A vector of positive integers.

alpha

A vector of probabilities (preferably below .5).

incl.len

Logical; whether to include a column of values of n (default to FALSE; the rows are named by the values of n in any case).

stat

A character string; any of several recognized test statistics ("tau", "concord*", , "discord*", "P", "Q", "K", "k", "inv", "S").

Value

The number of permutations of n having k inversions, as k ranges from 0 to n.

Examples

1
2
tau_crit_table(n = 1:5, alpha = 10 ^ (-1:-3), incl.len = TRUE, stat = "inv")
tau_crit_table(n = 1:5, alpha = 10 ^ (-1:-3), incl.len = TRUE, stat = "tau")

corybrunson/tautable documentation built on March 29, 2021, 9:22 p.m.