getFitMeasures: compute fit measures for laremm

getFitMeasuresR Documentation

compute fit measures for laremm

Description

Note: laremm is based on the R package regsem. Because of the early status of laremm, it is recommended to use regsem instead!

Usage

getFitMeasures(regmodel, model_type = "mxModel", fitfun = "FIML",
  cvsample = NULL, zeroThresh = 0.001, setZero = FALSE)

Arguments

regmodel

already run regularized model

model_type

specify the type of model provided: ctsem or mxModel

fitfun

fitfunction to be used in the fitting procedure. Either FML or FIML

cvsample

mxData object with test sample data. Has to be of same data_type as the training data set

zeroThresh

threshold for setting regularized parameters to zero. Default is .001 similar to regsem

setZero

should parameters below zeroThresh be set to zero in all fit calculations. Default is FALSE, similar to regsem

Author(s)

Jannik Orzek


jhorzek/laremm documentation built on Sept. 16, 2022, 12:06 p.m.