Internal function: This function computes the regularized models for all smooth penalty functions which are implemented for bfgs. Use the dedicated penalty functions (e.g., lessSEM::smoothLasso) to penalize the model.
.regularizeSmoothSEMInternal(
lavaanModel,
penalty,
weights,
tuningParameters,
epsilon,
tau,
method = "bfgs",
modifyModel,
control,
notes = NULL
)
regularizedSEM
model of class lavaan
string: name of the penalty used in the model
labeled vector with weights for each of the parameters in the model.
data.frame with tuning parameter values
epsilon > 0; controls the smoothness of the approximation. Larger values = smoother
parameters below threshold tau will be seen as zeroed
optimizer used. Currently only "bfgs" is supported.
used to modify the lavaanModel. See ?modifyModel.
used to control the optimizer. This element is generated with the controlBFGS function. See ?controlBFGS for more details.
option to pass a notes to function. All notes of the current function will be added