Iteration history

Posted on
No user picture. RickD Joined: 03/01/2011
Hi All.

Does anyone know how to view the iteration history from the optimization routine? I generally like to examine this information as I consider model fit. I searched the archives and it looks like this issue has received some attention but I could not figure out how to obtain this output.

Thanks in advance,

Rick DeShon

Replied on Tue, 03/01/2011 - 11:23
Picture of user. mspiegel Joined: 07/31/2009

Setup the checkpoint options so that the model state is written to a file every NNN iterations. Use mxOptions() to set this up prior to running the model.

model <- mxOption(model, "Checkpoint Units", "iterations")
model <- mxOption(model, "Checkpoint Count", NNN)

Then run the model with checkpoint=TRUE.

modelOut <- mxRun(model, checkpoint = TRUE)

See ?mxOptions for more options on controlling the output directory or filename of the checkpoint file.