You are here

access model estimated parameters (EP) without calling summary?

2 posts / 0 new
Last post
tbates's picture
Offline
Joined: 07/31/2009 - 14:25
access model estimated parameters (EP) without calling summary?

Hi OpenMxers,
I want to determine automatically which order to put models into mxCompare so that the model with more degrees of freedom comes first.

Both models have been run, and I can access a models number of estimated parameters from summary(model).

summary() however, can be costly in terms of execution time: Is there a way to access the EP (or df) property from the model directly without calling summary?

Besten Wünsche,
tim

FYI, the situation I am trying to automate is avoiding this:

|Model        | EP|Delta-2LL |Delta df|p  |      AIC|Compare with Model |
|:------------|--:|:----------|:------|:--|--------:|:------------------|
|fix_C_2_zero | 25|           |       |   | 2227.444|                   |
|Final        | 27|1.29e-05   |-2     |   | 2231.444|fix_C_2_zero       |
Warning message:
In pchisq(otherSummary$Minus2LogLikelihood - refSummary$Minus2LogLikelihood,  :
  NaNs produced
mhunter's picture
Offline
Joined: 07/31/2009 - 15:26
coef

The S3 method called coef() is a wrapper around omxGetParameters. It extracts the free parameters without using summary(). You could then do length(coef(model1)).