You are here

Error in summary()

2 posts / 0 new
Last post
brandmaier's picture
Joined: 02/04/2010 - 20:45
Error in summary()
Binary Data pathologicalOpenMx.R1.9 KB


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:, 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.


mhunter's picture
Joined: 07/31/2009 - 15:26

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

Log in or register to post comments