IK2: IK2

Description Usage Arguments Value Author(s) References Examples

View source: R/A.R

Description

Calculates the confidence interval for the A statistic while singling out one group for two or more correlated samples.

Usage

1
2
IK2(y, ref = 1, weights = FALSE, n.bootstrap = 1999,
conf.level = .95, ci.method = 1, seed = 1)

Arguments

y

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

ref

Reference group (to compare to all others) (scalar, default = 1).

weights

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

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
4
5
x1 <- rnorm(25)
x2 <- x1 - rnorm(25, mean = 1)
x3 <- x2 - rnorm(25, mean = 1)
y <- cbind(x1, x2, x3)
IK2(y)

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

Related to IK2 in RProbSup...