Closed aliceballerini closed 2 years ago
Hi @aliceballerini, I cannot reproduce the problem. Did you restart your R session and try again? It could be due to an incompatible package that was loaded in your session.
The error disappeared after I restarted the R session.
data.harmonized <- neuroCombat(dat=rad, batch=sitecode, mod=mod) [neuroCombat] Performing ComBat with empirical Bayes [neuroCombat] Found 5 batches [neuroCombat] Adjusting for 3 covariate(s) or covariate level(s) [neuroCombat] Standardizing Data across features [neuroCombat] Fitting L/S model and finding priors [neuroCombat] Finding parametric adjustments [neuroCombat] Adjusting the Data Warning message: In xtfrm.data.frame(x) : cannot xtfrm data frames mod.csv sitecode.csv sitecode_s.csv mod_s.csv rad_s.csv
Hello Dr. Fortin,
I've always used you amazing package on R successfully, but after the update it doesn't work anymore. I try several time, I also tried to run your example, but I always got the same error: Error in apply(x, 3L, qr.default, ...) : 'MARGIN' does not match dim(X)
Here's the code:
What is your advice to fix that?