You are here

mxCompare() compare each model to base AND to the model above it

currently mxCompare compares each listed submodel to the base

e.g.

> tableFitStatistics(twinSatFit, c(twinSatSub1Fit, twinSatSub2Fit))
          Name    ep -2LL    df   AIC      diffLL diffdf p   
Model 1 : twinSat 6  1599.78 2282 -2964.22 -      -      -   
Model 2 : twinSat 4  1602.96 2284 -2965.04 3.18   2      0.2 
Model 3 : twinSat 3  1605.63 2285 -2964.37 5.85   3      0.12

It would be nice to have a couple of extra columns, and use these to in addition show the p value of each model to the model above it (not to every model above it, just the preceding model).

A really nice toggle would be to show the comparison of each model to the model above it OR (if the preceding model exceeds a threshold p value) to the last model that didn't have a significant loss of fit. That would be v.useful !

Reporter: 
Created: 
Tue, 07/27/2010 - 13:50
Updated: 
Wed, 08/20/2014 - 12:33

Comments

I can see the utility of this toggle. More generally, I'd like a list of base models as the first argument.

This should be closed, as mxCompare now implements both a list of base models, and the all = T option

Always happy to close bugs.