dot-regularizeSmoothSEMInternal: .regularizeSmoothSEMInternal

.regularizeSmoothSEMInternalR Documentation

.regularizeSmoothSEMInternal

Description

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.

Usage

.regularizeSmoothSEMInternal(
  lavaanModel,
  penalty,
  weights,
  tuningParameters,
  epsilon,
  tau,
  method = "bfgs",
  modifyModel,
  control,
  notes = NULL
)

Arguments

lavaanModel

model of class lavaan

penalty

string: name of the penalty used in the model

weights

labeled vector with weights for each of the parameters in the model.

tuningParameters

data.frame with tuning parameter values

epsilon

epsilon > 0; controls the smoothness of the approximation. Larger values = smoother

tau

parameters below threshold tau will be seen as zeroed

method

optimizer used. Currently only "bfgs" is supported.

modifyModel

used to modify the lavaanModel. See ?modifyModel.

control

used to control the optimizer. This element is generated with the controlBFGS function. See ?controlBFGS for more details.

notes

option to pass a notes to function. All notes of the current function will be added

Value

regularizedSEM


lessSEM documentation built on May 29, 2024, 7:10 a.m.