evaluateDataLikelihood: Compute the Negative Two-Loglikelihood of some data given a...

View source: R/evaluateDataLikelihood.R

evaluateDataLikelihoodR Documentation

Compute the Negative Two-Loglikelihood of some data given a model (either OpenMx or lavaan)

Description

This helper function is used in the semforest varimp and proximity aggregate functions.

Usage

evaluateDataLikelihood(model, data, data_type = "raw")

Arguments

model

A OpenMx model as used in semtree and semforest.

data

Data set to apply to a fitted model.

data_type

Type of data ("raw", "cov", "cor")

Value

Returns a -2LL model fit for the model

Author(s)

Andreas M. Brandmaier, John J. Prindle

References

Brandmaier, A.M., Oertzen, T. v., McArdle, J.J., & Lindenberger, U. (2013). Structural equation model trees. Psychological Methods, 18(1), 71-86.

See Also

semtree, semforest


semtree documentation built on May 29, 2024, 4:05 a.m.