No dataset associated with a model

Posted on
Picture of user. brandmaier Joined: 02/04/2010

Hi everybody!

It seems that OpenMx does not allow specifying a model without a dataset (see error message (1)). Sure, we will eventually need a dataset to run the model but at design time, I might not have a dataset yet. Only later in the program I might decide to load different datasets and associate them with the same model while at first the dataset reference could be NULL.
Shouldn't OpenMx allow NULL or some kind of empty dataset and test only within run() whether there is a valid dataset available?

(1) Error: The RAM objective does not have a dataset associated with it in model XXX

cheers,
Andy

Replied on Mon, 02/07/2011 - 08:21
Picture of user. mspiegel Joined: Jul 31, 2009

Hi Andy,

The function "genericObjFunConvert", which generates the error message, I think is called only by mxRun(). Could you send us a copy of your script?

--Michael