Error in summary()

1 reply [Last post]
brandmaier's picture
Offline
Joined: 02/04/2010

Hi,

I created a model without any free parameters. I'd like to run the model to obtain the likelihood of some data under this model. The model runs fine but summary() returns the error that the comparison "matrix == nameA" is valid only for atomic and list. It seems that summary() is missing a check for empty lists of free parameters. This is the traceback():

8: eval(expr, envir, enclos)
7: eval(e, x, parent.frame())
6: subset.data.frame(ptable, matrix == nameA, select = "row", drop = TRUE)
5: subset(ptable, matrix == nameA, select = "row", drop = TRUE)
4: parameterListHelper(model, FALSE, invSDs)
3: parameterList(model, useSubmodels)
2: summary(run)
1: summary(run)

I'll attach an example (simulated data and a LGCM with a single free parameter that is fixed with omxSetParameters() later) that produces the error.

Thanks,
Andreas

AttachmentSize
pathologicalOpenMx.R1.9 KB
mhunter's picture
Offline
Joined: 07/31/2009
Fixed

As of the 2.0 Beta and possibly before, this works now and no longer causes an error. Thanks for pointing it out!