Learn R Programming

stremo (version 0.2)

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.
matrep
Model skeleton, as given by matrix.representation.
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.

See Also

fit.nlminb, nlminb, fml, and fgls.