You are here

argument is missing, with no default

3 posts / 0 new
Last post
MNivard's picture
Offline
Joined: 12/09/2010 - 11:18
argument is missing, with no default

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?

Ryne's picture
Offline
Joined: 07/31/2009 - 15:12
This is the "trailing comma"

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

MNivard's picture
Offline
Joined: 12/09/2010 - 11:18
Ah, i see thanks!

Ah, i see thanks!