Learn R Programming

RProbSup (version 3.0)

CalcOrd2: CalcOrd2

Description

Calculates the ordinal comparison of the A statistic for two or more correlated samples. Note: This function is not meant to be called by the user, but it is called by AOrd2.

Usage

CalcOrd2(y, weights = FALSE, increase = FALSE)

Arguments

y

Matrix of cases (rows) by scores (column 1) and group codes (column 2) (matrix).

weights

Weight of each case. Set to TRUE to weight cases; if so, column 3 contains case weights (default = FALSE).

increase

Set to TRUE if scores are predicted to increase with group codes (default = FALSE).

Value

a

The A statistic.

References

Ruscio (2008) & Ruscio and Mullen (2012) & Ruscio and Gera (2013)

Examples

Run this code
# NOT RUN {
x1 <- rnorm(25)
x2 <- x1 - rnorm(25, mean = 1)
x3 <- x2 - rnorm(25, mean = 1)
y <- cbind(x1, x2, x3)
CalcOrd2(y)
# }

Run the code above in your browser using DataLab