This helper function is used
in the semforest
varimp
and
proximity
aggregate functions.
evaluateDataLikelihood(model, data, data_type = "raw")
Data set to apply to a fitted model.
Type of data ("raw", "cov", "cor")
Returns a -2LL model fit for the model
Brandmaier, A.M., Oertzen, T. v., McArdle, J.J., & Lindenberger, U. (2013). Structural equation model trees. Psychological Methods, 18(1), 71-86.