Compute the disattenuation correction for measurement error
Source:R/FUNCTIONS_STATISTICAL.R
compute_dissatenuation.RdEstimates the true correlation between two variables by correcting the observed correlation for attenuation due to measurement error in both variables.
Arguments
- variable1
Numeric vector. True scores for the first variable.
- error1
Numeric vector. Measurement error for
variable1. Must be the same length asvariable1.- variable2
Numeric vector. True scores for the second variable.
- error2
Numeric vector. Measurement error for
variable2. Must be the same length asvariable2.
Details
The observed correlation is computed from the error-contaminated scores
(variable + error). Reliability for each variable is estimated as
the ratio of true score variance to total observed variance. The
disattenuated correlation is then:
$$\rho = \frac{r_{obs}}{\sqrt{R_1 \cdot R_2}}$$
where \(R_1\) and \(R_2\) are the reliability estimates.