Troubleshooting umxGXEbiv error
Posted on
gdash
Joined: 11/29/2021
Forums
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):
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
You can type str(mzData) or str(tmp) to check that.
Log in or register to post comments
Data frame check
> is.data.frame(tmp)
[1] TRUE
> is.data.frame(mzData)
[1] TRUE
> is.data.frame(dzData)
[1] TRUE
Using str():
> str(tmp)
tibble [760 x 300] (S3: tbl_df/tbl/data.frame)
> str(mzData)
tibble [332 x 300] (S3: tbl_df/tbl/data.frame)
> str(dzData)
tibble [428 x 300] (S3: tbl_df/tbl/data.frame)
Log in or register to post comments
In reply to Data frame check by gdash
tibbles?
Log in or register to post comments
In reply to tibbles? by AdminRobK
Thank you!
Log in or register to post comments