Open christianlimberger opened 4 months ago
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 df_fdg_CU
object.
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
> lm1 <- mincLm(FDG_path ~ <SINGLE PREDICTOR>, data = df_fdg_CU, mask = "adni_space.mnc")
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.