A2: A2

Description Usage Arguments Value Author(s) References Examples

View source: R/A.R

Description

Calculates the standard error and constructs a confidence interval for the A statistic for two correlated samples using bootstrap methods.

Usage

1
2
A2(y1, y2, weights = FALSE, w = 0, n.bootstrap = 1999,
conf.level = .95, ci.method = 1, seed = 1)

Arguments

y1

Scores for group 1 (vector).

y2

Scores for group 2 (vector).

weights

Whether to weight cases (default = FALSE).

w

Weights for cases in group 1 (optional) (vector, default is 0).

n.bootstrap

Number of bootstrap samples (scalar, default = 1999).

conf.level

Confidence level (scalar, default = .95).

ci.method

Method used to construct confidence interval (scalar, default = 1 (for BCA), user can also call 2 (for percentile).

seed

Random number seed (scalar, default = 1).

Value

A vector containing the A statistic, its estimated standard error, and the upper and lower bounds of the confidence interval.

Author(s)

John Ruscio

References

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

Examples

1
2
3
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)
A2(y1, y2)

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

Related to A2 in RProbSup...