A wrapper for the internal .MCDef() function from the semmcci package.
This function processes Monte Carlo samples to compute defined parameters for structural
equation modeling (SEM).
MCDefWrapper(object, thetahat, thetahatstar_orig)A matrix of computed defined parameters for each Monte Carlo sample.
A fitted lavaan SEM model object.
A numeric vector of parameter estimates.
A matrix of Monte Carlo samples, where rows represent samples and columns represent parameters.
This function takes Monte Carlo samples of parameter estimates and a fitted SEM model object to compute the defined parameters (e.g., indirect effects or user-defined contrasts) based on the model syntax. It is particularly useful for examining derived quantities in SEM analyses using Monte Carlo methods.
MCMI2(), RunMCMIAnalysis()