You are here

mxCompare: make comparison optional

2 posts / 0 new
Last post
tbates's picture
Offline
Joined: 07/31/2009 - 14:25
mxCompare: make comparison optional
AttachmentSize
Binary Data my mxCompare.R3.28 KB

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:::

tbates's picture
Offline
Joined: 07/31/2009 - 14:25
mxCompare(fit)

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"