argument is missing, with no default

Posted on
No user picture. MNivard Joined: 12/09/2010

I get the following error messeage from openMX:

Error in mxModel("ACE", mxMatrix(type = "Iden", nrow = 4, ncol = 4, name = "I"), :
argument is missing, with no default

this "ACE" mxModel object contains only mxMatrix and MxAlgebra ellements.

It is one of six submodels in a bigger model this bigger model contains an mx Algebraobjective the other 5 submodels contain data and a mxFIMLObjective each for the different groups.

Which argument am i missing in this ACE mxModel? which are the required model arguments anyway?

Replied on Thu, 02/17/2011 - 08:03
Picture of user. Ryne Joined: Jul 31, 2009

This is the "trailing comma" problem. At some point, you use a comma right before a right parenthesis. R thinks whatever is after that comma is a new argument, but doesn't know what to do with it. Delete that comma and you're fine. See he wiki on common errors for more information.

Ryne