Outputting mxModel

2 replies [Last post]
pdeboeck's picture
Offline
Joined: 08/04/2009

Is there a function to output an mxModel to a file? I was running a simulation, and rather than extracting a few specific elements, I wanted to save the results from each model fit to a file. I tried dput(). While a file was written, I can not retrieve it using dget(). My ideal would be to be able to save the entirety of mxModel for future reference. Ideas?

mspiegel's picture
Offline
Joined: 07/31/2009
I think we've successfully

I think we've successfully used save() and load() on a MxModel object.

Steve's picture
Offline
Joined: 07/30/2009
That's

That's correct.

save(mymodel)

will save the model object in its entirety, including any mxData that had been included in it.