CalcA2 {RProbSup} | R Documentation |
CalcA2
Description
Calculates the A statistic for 2 correlated samples.
Usage
CalcA2(y1, y2, weights = FALSE, w = 0)
Arguments
y1 |
Scores for variable 1 (vector). |
y2 |
Scores for variable 2 (vector). |
weights |
Whether to weight cases (default = FALSE). |
w |
Weights (optional) (vector, default is 0). |
Value
a |
The A statistic. |
Author(s)
John Ruscio
References
Ruscio (2008) & Ruscio and Mullen (2012) & Ruscio and Gera (2013)
Examples
y1 <- c(6, 7, 8, 7, 9, 6, 5, 4, 7, 8, 7, 6, 9, 5, 4)
y2 <- c(7, 5, 6, 7, 6, 4, 3, 5, 4, 5, 4, 5, 7, 4, 5)
CalcA2(y1, y2)
[Package RProbSup version 3.0 Index]