ci: Calculate a confidence interval for an attenuated correlation coefficient.
Description
Calculate a confidence interval for an attenuated correlation coefficient.
Usage
ci(r, N, level = 0.95, 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].
level
Numeric in [0, 1]. Confidence level of the interval. Defaults to
0.95.
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
Numeric in [0, 1]. The p-value under null-hypothesis rho.