tbates / umx

Making Structural Equation Modeling (SEM) in R quick & powerful
https://tbates.github.io/
44 stars 17 forks source link

make_TwinData not accepting variable names #179

Closed lf-araujo closed 2 years ago

lf-araujo commented 2 years ago

The function umx_make_TwinData should allow for variable name creation with the toggle varNames = "name", however when attempting:

tmp = umx_make_TwinData(nMZpairs = 10000, AA = .30, CC = .00, EE = .70, varNames = "test")

One gets:

Error in `$<-.data.frame`(`*tmp*`, "var_T1", value = numeric(0))

Using umx 4.10.10

tbates commented 2 years ago

Hi @lf-araujo. Yes, I stumbled across this myself last week. A fix (and other things) is making it's way to CRAN now as v 4.10.50

https://github.com/tbates/umx/blob/master/NEWS.md