CalcAAPD1: CalcAAPD1

Description Usage Arguments Value Author(s) References Examples

View source: R/A.R

Description

Calculates the A statistic for the average absolute paired deviation for two or more groups. Note: This function is not meant to be called by the user, but it is called by AAPD1.

Usage

1

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).

Value

a

The A statistic.

Author(s)

John Ruscio

References

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

Examples

1
2
3
4
5
x1 <- rnorm(25)
x2 <- x1 - rnorm(25, mean = 1)
x3 <- x2 - rnorm(25, mean = 1)
y <- cbind(c(x1, x2, x3), c(rep(1, 25), rep(2, 25), rep(3, 25)))
AAPD1(y)

RProbSup documentation built on Jan. 13, 2021, 10:41 p.m.

Related to CalcAAPD1 in RProbSup...