You are here

MxModel@intervals

3 posts / 0 new
Last post
carey's picture
Offline
Joined: 10/19/2009 - 15:38
MxModel@intervals

some old (over 1 year ago) MxModel objects that i saved are giving me the following error in R:
Error: no slot of name "intervals" for this object of class "MxModel"

if i create a new MxModel, it shows a slot for intervals of type list. but i cannot find documentation for this slot in https://openmx.ssri.psu.edu/docs/OpenMx/latest/_static/Rdoc/MxModel-class.html (or in the doc for mxModel either).

any help?
best,
greg

mspiegel's picture
Offline
Joined: 07/31/2009 - 15:24
The old model does not have a

The old model does not have a slot for confidence intervals. I think the following will work:

newModel <- mxModel()
oldSlotNames <- slotNames(originalModel)
for(i in 1:length(oldSlotNames)) {
   slot(newModel, oldSlotNames[[i]]) <- slot(originalModel, oldSlotNames[[i]])
}

If your original model contained submodels, then you'll need to translate those as well.

carey's picture
Offline
Joined: 10/19/2009 - 15:38
merci, and have a happiy

merci,
and have a happiy doliday season.
greg