Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

umxReduceACE does not play nice with umx_set_auto_run() #241

Closed
lf-araujo opened this issue Feb 8, 2024 · 3 comments
Closed

umxReduceACE does not play nice with umx_set_auto_run() #241

lf-araujo opened this issue Feb 8, 2024 · 3 comments
Assignees

Comments

@lf-araujo
Copy link
Contributor

If you try:

library(umx)

umx_set_auto_run(autoRun = F)

     data(twinData)
     mzData = subset(twinData, zygosity == "MZFF")
     dzData = subset(twinData, zygosity == "DZFF")
     m1 = umxACE(selDVs = "bmi", dzData = dzData, mzData = mzData, sep = "")
     
     # ===========================================================================
     # = Table of parameters + fit comparisons, ready too copy to word processor =
     # ===========================================================================
     umxReduce(m1, silent=TRUE, digits=2, repo="h")

You will get:

You gave me an ACE model
Error in if (-2 * logLik(ACE) > -2 * logLik(ADE)) { : 
  missing value where TRUE/FALSE needed
@tbates tbates self-assigned this Feb 26, 2024
@tbates
Copy link
Owner

tbates commented Feb 26, 2024

'guess I need to hard code autorun in the model runs inside umxReduce.* functions.
Will look at it

@tbates
Copy link
Owner

tbates commented Mar 4, 2024

traceback is so helpful :-)

traceback()
2: umxReduce.MxModelACE(m1, silent = TRUE, digits = 2, repo = "h") at fit_and_reporting.R#230
1: umxReduce(m1, silent = TRUE, digits = 2, repo = "h")

and global settings are the work of the devil 💯 :-)

tbates added a commit that referenced this issue Mar 4, 2024
#241 should be fixed with this
@tbates
Copy link
Owner

tbates commented Mar 4, 2024

fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants