objective.functions {sem}R Documentation

sem Objective-Function Builders

Description

These functions return objective functions suitable for use with optimizers called by sem. The user would not normally call these functions directly, but rather supply one of them in the objective argument to sem. Users may also write their own objective functions.

Usage

objectiveML(gradient=TRUE)

objectiveGLS(gradient=FALSE)

Arguments

gradient

If TRUE, the object that's returned includes a function for computing an analytic gradient; there is at present no analytic gradient available for objectiveGLS.

Value

These functions return an object of class "semObjective", with up to two elements:

objective

an objective function.

gradient

a gradient function.

Author(s)

John Fox jfox@mcmaster.ca

References

See sem.

See Also

sem, optimizers


[Package sem version 2.1-1 Index]