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

tbates's picture
Project:OpenMx
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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 !

Comments

neale's picture

#1

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

tbates's picture

#2

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

jpritikin's picture

#3

Status:active» fixed

Always happy to close bugs.

mhunter's picture

#4

Status:fixed» closed