Computes CFI given the model-implied and the observed (or population) covariance matrix for multiple group models.
CFI = (F_null - F_hyp) / F_null
applying multiple group sampling weights to F_hyp
and F_null
.
getCFI.Sigma.mgroups(
SigmaHat,
S,
muHat = NULL,
mu = NULL,
N,
fittingFunction = "ML"
)
Returns CFI
a list of model implied covariance matrix
a list of observed (or population) covariance matrix
model implied mean vector
observed (or population) mean vector
a list of group weights
whether to use ML
or WLS