imxWlsChiSquare {OpenMx}R Documentation

Calculate Chi Square for a WLS Model

Description

This is an internal function used to calculate the Chi Square distributed fit statistic for weighted least squares models.

Usage

imxWlsChiSquare(model, J=NA)

Arguments

model

An MxModel object with acov (WLS) data

J

Optional pre-computed Jacobian matrix

Details

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.

Value

A named list with components

Chi

numeric value of the Chi Square fit statistic.

ChiDoF

degrees of freedom for the Chi Square fit statistic.

References

M. W. Browne. (1984). Asymptotically Distribution-Free Methods for the Analysis of Covariance Structures. British Journal of Mathematical and Statistical Psychology, 37, 62-83.


[Package OpenMx version 2.2.6 Index]