omxSetParameters {OpenMx}R Documentation

Assign Model Parameters


Assign starting values to the free parameters of a model. This function cannot assign values to free parameters with NA labels.


omxSetParameters(model, names, values, indep = FALSE)


model a MxModel object.
names a vector of free parameter names.
values a vector of free parameter values.
indep set parameters in independent submodels.

See Also

omxGetParameters, omxAssignFirstParameters


A <- mxMatrix('Full', 3, 3, labels = c('a','b', NA), free = TRUE, name = 'A')
model <- mxModel(A, name = 'model')
model <- omxSetParameters(model, c('a', 'b'), c(1, 2))

[Package OpenMx version 0.2.9-1147 Index]