mxCompare: make comparison optional

Posted on
Picture of user. tbates Joined: 07/31/2009
This is a minor proposal, but I'd like this to work:

> mxCompare2(fit1)
base comparison ep minus2LL df AIC diffLL diffdf p
1 ACE_Non_ScSL_Cor_a 24 67751.8 9976 47799.8 NA NA NA

Currently it would error: Comparison model missing.

I attach code that runs which allows the user to access the base function of mxCompare, without having to pad the request with a dummy comparison model. It all still runs fine with multiple bases, 0-n comparisons, and all=T|F. But allows people to see a summary of their model. I don't think there is any other way for users to see this at present.

I wrote it so as not to step on the existing mxCompare() and shoFitStatistics(), by renaming these with a 2 at the end. It calls the private functionality of OpenMx using OpenMx:::

Replied on Sat, 09/21/2013 - 07:42
Picture of user. tbates Joined: 07/31/2009

I thought a patch to allow mxCompare() to work with just a base model was in the pipeline, but doesn't seem to be in "1.3.2-2557"