Improving summary() function

Posted on
Picture of user. mspiegel Joined: 07/31/2009

The summary() function has been reimplemented. It now ignores columns in a dataset that are not used in a FIML objective function. It also now handles independent submodels more intelligently. The old implementation ran in about 10 seconds for models/failing/OneFactorCovRAMSpeedup.R (with numberIndicators = 80). The new implementation runs in about 0.5 seconds.

We have only three tests in the test suite that check the summary() output. Please get into the habit of adding omxCheckEquals() statements for the summary() output in addition to the parameter estimates and the other things we usually check in the test suite. It will help in the long term as we handle corner cases with the summary output.

Replied on Tue, 03/09/2010 - 22:47
Picture of user. Ryne Joined: Jul 31, 2009

Thanks, Michael! Is there something specific you want us to write into omxCheckEquals tests of the summary function, or should we just pick a parameter or one component of a list to check?

Replied on Tue, 03/09/2010 - 22:53
Picture of user. mspiegel Joined: Jul 31, 2009

In reply to by Ryne

Oops. Yes, it's the observedStatistics and estimatedParameters components of the summary() output that concerns me. If we get those two correct, then we are likely to get the remaining components correct as well.