-
Notifications
You must be signed in to change notification settings - Fork 17
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
Problem running mincLm with covariates #322
Comments
First, you can directly use the scale() function inside the RMINC equation, which is probably more clear for the latest outputs. I suggest you try each covariate individually, something about the structure of one of your columns isn't as expected. |
Thank you Gabriel, I already tried putting scale() inside the function, and also testing each covariate individually, but only got the function running without any covariate... |
ok, something about your data is very messed up then. Please provide some kind of view of the |
Ok. Lets look at a few more things. Given this model is your goal, > lm1 <- mincLm(FDG_path ~ snp + APOE4 + PTGENDER + AGE + ABETA + PTAU, data = df_fdg_CU, mask = "adni_space.mnc") Can you successfully run
For each of these columns successfully? |
yes! The problem is when I put any covariate |
Okay, lets pare down this to a minimum failing example. Can you please choose a simple two-predictor model, run it without the mask option, and after the error, run traceback() and provide the full output. In addition, please provide your sessionInfo() |
I am trying to run mincLm, but I'm encountering an error that only occurs when I include covariates. This is strange because the same error is happening with other codes that previously worked perfectly.
The text was updated successfully, but these errors were encountered: