Closed gdevenyi closed 5 years ago
Not stats::TukeyHSD
?
I suppose we could return the vcov matrix for each voxel, but that would be very space inefficient. Is there something holding you back from:
pMincApply(files, function(v, data) glht(lm(v ~ ..., data = data)), data = frame)`
Tukey is probably okay as well? Not sure it can do lmers
Re: holding back, yes, not knowing I can do that :)
I don't think I'm going to implement this feature. If another dev is willing and able I'd be happy to coach, but right now most of my energy is going toward building/scaling bayesian approaches. Improving docs so that people are more comfortable writing their own parallelized voxel level code is probably a much better use of time.
We are now regularly running into the case where we have more than 2 group levels in a given model.
I know I can get a different comparison if I change the reference level and re-run the model, but as I understand it, that is a multiple comparison so the statistical significance is is incorrect. The way I would do this with a regular lm is the multicomp glht function.