# model "does not contain a RAM objective function"

3 posts / 0 new
Offline
Joined: 03/01/2010 - 23:32
model "does not contain a RAM objective function"

Hi,

I'm having some trouble and have been getting an error message that reads:

"Error: The RAM model 'MZ' does not contain a RAM objective function."

What has me perplexed is that I specify what OpenMx should take into account when evaluating the model (for both groups in a BG study):

mxFIMLObjective(covariance="R", means="M", dimnames=manifests, thresholds="expThresholds")
mxAlgebra(expression=MZ.objective + DZ.objective, name="minus2sumll" ),
mxAlgebraObjective("minus2sumll")


Thank you for any insight.

UPDATE: I figured it out. The error (which should have been obvious) is that I mislabeled the model type.

Offline
Joined: 07/31/2009 - 15:24
It looks like the algebra

It looks like the algebra objective function needs to be in the parent model. I don't see a right-parenthesis that closes the child model before the specification of the algebra and the algebra objective function.

Offline
Joined: 03/01/2010 - 23:32
Thanks!

Just saw this after I hit submit on the update.