cc {attenuation}R Documentation

Confidence curves for attenuated correlation coefficients.

Description

Confidence curves for attenuated correlation coefficients.

Usage

cc(r, N, lower = -1, upper = 1, by = 0.001, method = "corr",
  k = NULL)

Arguments

r

Numeric vector of three elements in [-1,1]. r[1] is the correlation between the noisy measures X' and Y', r[2] is the correlation between the noisy X' and the true X, while r[3] is the correlation between the noisy Y' and the true Y.

N

Numeric vector of three positive integers. N[i] is the sample size for r[i].

lower

Lower bound for the curve. Defaults to -1.

upper

Upper bound for the curve. Defaults to 1.

by

Increment of the sequence from lower to upper.

method

The type of confidence curve. Can be "corr", "cronbach", "HS" or "free". See the details of p_value.

k

Numeric vector of two positive integers. k[i] is the number of testlets for the for r[i+1]. Only needed for method "cronbach".

Value

An object of class ccaf.

Examples

    r = c(0.20, sqrt(0.45), sqrt(0.55))
    N = c(100, 100, 100)
    plot(cc(r, N))

[Package attenuation version 1.0.0 Index]