I am performing a multiple-group confirmatory factor analysis in lavaan for a paper I am working on, guided by this tutorial: https://pareonline.net/pdf/v19n7.pdf.
I work with ordinal indicators and when I try to run the semTools:::difftest(), I get this warning message:
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'difftest' not found
This is the code:
Does this mean that the difftest() function is not longer included in the semTools package?
Does anyone know which function to use instead?
lavTestLRT(scs_model_config,scs_model_weak,A.method="delta",type="Chisq")and would like to ask whether it is correct
What, the syntax? Yes.
and if it is, why no AIC or BIC are reported,
If you used a least-squares estimator (e.g., DWLS for categorical outcomes) instead of a likelihood estimator, then there is no likelihood with which to calculate information criteria.
The authors of the paper reported delta.cfi.
That will not tell you anything useful, but you can find the CFI from each model using fitMeasures(). You can also use the compareFit() function in semTools.
Terrence D. Jorgensen
Assistant Professor, Methods and Statistics
Research Institute for Child Development and Education, the University of Amsterdam