imxWlsChiSquare {OpenMx} | R Documentation |
This is an internal function used to calculate the Chi Square distributed fit statistic for weighted least squares models.
imxWlsChiSquare(model, J=NA)
model |
An MxModel object with acov (WLS) data |
J |
Optional pre-computed Jacobian matrix |
The Chi Square fit statistic for models fit with maximum likelihood depends on the difference in model fit in minus two log likelihood units between the saturated model and the more restricted model under investigation. For models fit with weighted least squares a different expression is required. If J is the first derivative (Jacobian) of the mapping from the free parameters to the unique elements of the expected covariance, means, and threholds, J_c is the orthogonal complement of J, W is the inverse of the full weight matrix, and e is the differnce between the sample-estimated and model-implied covariance, means, and thresholds, then the Chi Square fit statistic is
χ^2 = e' J_c (J'_c W J_c)^-1 J'_c e
with e' indicating the transpode of e. This Equation 2.20a from Browne (1984) where he showed that this statistic is chi-square distributed with the conventional degrees of freedom.
A named list with components
numeric value of the Chi Square fit statistic.
degrees of freedom for the Chi Square fit statistic.
M. W. Browne. (1984). Asymptotically Distribution-Free Methods for the Analysis of Covariance Structures. British Journal of Mathematical and Statistical Psychology, 37, 62-83.