iterator:
Minimization of a fitting function.
Description
Function passed to an optimizer to minimize a fitting function.
Usage
iterator(pars, model, sigma, matrep, fun = "fml")
Arguments
pars
Estimates of the free parameters.
model
A lavaanified model.
sigma
Population covariance matrix.
fun
Fitting function to be minimized.
Value
Value of the statistics to be minimized given a set of parameter
estimates.
Details
This function is used inside fit.nlminb
and passed as an
argument to nlminb
.