Hello,
I am trying to run a bivariate moderation model with a continuous moderator that varies across co-twins (which I am very new to!). When I try to run the model, I receive the following error (using Tryhard also throws errors):
"Error incurred trying to run model: model = mxTryHard(model) might help?
assignment of an object of class “list” is not valid for @‘values’ in an object of class “FullMatrix”; is(value, "matrix") is not TRUE"
Might you be able to advise on the source of this error and how to remedy?
Here is the code I am using:
selDVs = "dv" selDefs = "moderator" mzData = subset(tmp, mzdz == "0") dzData = subset(tmp, mzdz == "1") model = umxGxEbiv(selDVs = selDVs, selDefs = selDefs, dzData = dzData, mzData = mzData, sep = "_T", dropMissingDef = TRUE)
Thank you very much for your help!
Are you sure your data set (tmp) is of type data.frame? Seems like the subsetting part is generating a list, whereas mxData is expecting a data.frame or a matrix.
You can type str(mzData) or str(tmp) to check that.
Thank you for your reply! I believe it is a data.frame:
You may be encountering this bug, which has been patched in the master branch of the source repository, and will be repaired in the next stable release of OpenMx.
Thank you!