powered by
Calculates the standard error and constructs a confidence interval for the A statistic using bootstrap methods.
A1(y1, y2, weights = FALSE, w1 = 0, w2 = 0, n.bootstrap = 1999, conf.level = .95, ci.method = 1, seed = 1)
Scores for group 1 (vector).
Scores for group 2 (vector).
Whether to weight cases (default = FALSE).
Weights for cases in group 1 (optional) (vector, default is 0).
Weights for cases in group 2 (optional) (vector, default is 0).
Number of bootstrap samples (scalar, default = 1999).
Confidence level (scalar, default = .95).
Method used to construct confidence interval (scalar, default = 1 (for BCA), user can also call 2 (for percentile).
Random number seed (scalar, default = 1).
A vector containing the A statistic, its estimated standard error, and the upper and lower bounds of the confidence interval.
Ruscio (2008) & Ruscio and Mullen (2012) & Ruscio and Gera (2013)
# NOT RUN { #Example used in Ruscio and Mullen (2012) y1 <- c(6, 7, 8, 7, 9, 6, 5, 4, 7, 8, 7, 6, 9, 5, 4) y2 <- c(4, 3, 5, 3, 6, 2, 2, 1, 6, 7, 4, 3, 2, 4, 3) A1(y1, y2) # }
Run the code above in your browser using DataLab