Closed lf-araujo closed 3 years ago
Hi Tim!
Was pulling my hair as I couldn't identify a problem with my dataset! Turns out, umx does not support tibbles. A simple as.data.frame solved the issue.
Hi I guessed that was the answer but didn't have time to have a look this week. Glad you've found the sanity of R's perfectly good data frame!
I had this problem last year with another colleague who moved to the **** tidy verse. I guess I'll code around it
Cheers T
hi @lf-araujo, Thanks for the report again.
I think I have fixed (one possible cause) of this with the different signature and drop=FALSE
default of tibbles. If you update with devtools::install_github("tbates/umx")
you could test?
Thanks for this Tim,
I think it is not there yet, working code still fails:
[cid:83d2a1a3-a9b8-4b2a-8663-83cb3ee633e2]
From: Tim Bates notifications@github.com Sent: Monday, 30 November 2020 8:36 PM To: tbates/umx umx@noreply.github.com Cc: lf_araujo luis.nando@gmail.com; Mention mention@noreply.github.com Subject: Re: [tbates/umx] umx functions not detecting tibble input (#141)
hi @lf-araujohttps://github.com/lf-araujo, Thanks for the report again.
I think I have fixed (one possible cause) of this with the different signature and drop=FALSE default of tibbles. If you update with devtools::install_github("tbates/umx") you could test?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/tbates/umx/issues/141#issuecomment-736119538, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACNLSLXL4MLUGLNIBP5PGGLSSQT6DANCNFSM4UCW5O5Q.
hmm.. fixed a typo in the proposed fix which would have lead to a run-time error...
Hi Tim,
Happy to help debug, it's still not there yet. Reinstalled the packaged, restarted session and now for (working) code:
dt$perextr1 <- dt$perextr2 <- as.numeric(dt$perextr)
dt$parcontt1 <- dt$parcontt2 <- as.numeric(dt$parcontt)
G2 <- umxGxE(data = dt,
zyg = "zyg0102",
mzData = "1: monozygotic",
dzData = "2: dizygotic",
selDVs = "perextr",
selDefs = "parcontt",
sep = "")
I get:
For code:
mzData <- subset(dt, zyg0102 == "1: monozygotic")
dzData <- subset(dt, zyg0102 == "2: dizygotic")
umxGxE( selDVs = "perextr",
selDefs = "parcontt",
sep = '',
mzData = mzData,
dzData = dzData)
I get:
When I add tryHard:
Fixed now, I believe
Yay! Working as expected! Thanks for this!
Hi Tim,
If this is not the place for support, please close.
First time working with twin data, and looking into using umx, as it is pretty well designed. In my attempt of analysing a GxE model, where parenting style influences one personality aspect, I get stuck in making umxGxE detect factors for the selDVs. Below is the minimal example:
This errs with:
Clear and informative, however:
So, the variable is an ordered factor for one personality trait subtest. I should be doing something wrong, but I can't figure it out?
Thanks
My sessioninfo: