mxCompare(oneModelOnly)

tbates's picture
Project:OpenMx
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

the old gen_epi helper tableFitStatistics(fit) would accept just one parameter, and describe that model's fit:
> tableFitStatistics(fit)
Name ep -2LL df AIC
Model 1 : top 7 2964.37 468 2028.37

The built-in replacement throws an error when the comparison list is omitted:
> mxCompare(fit)
Error in mxCompare(fit) :
'comparison' argument be a MxModel object or list of MxModel objects
It would be nice if it defaulted to simply give the base model data when no comparison models are provided...

Happy to help if needed