Closed qdread closed 9 months ago
You have 11 sets of contrasts, and hence 11 controls -- not one -- are involved. The combined set of 110 tests is not the situation for which the Dunnett adjustment is appropriate, because it is not a family of comparisons with one control.
Thanks for responding. So you recommend that the Bonferroni adjustment be used in that case?
It's an appropriate default, but pretty conservative with that many tests. Don't people often use some FDR method in this application context? I can't really give good advice here.
Closing this issue as I think it's completed
Hi Russ, I have a dataset where gene expression of many genes is being compared. There are several treatments and a control. We are only interested in comparing the mean of each treatment to the mean of the control, thus I am using the
dunnettx
adjustment. However, I think that the error rate should be controlled across all genes instead of separately within each gene (because the number of genes chosen to compare is more or less arbitrary, it would be easy to get false positives if lots and lots of genes are tested, even if we control for multiple comparisons vs. the control within each gene).Where emmeans comes in is that I used
rbind()
to combine the contrasts for each gene together. This changes thedunnettx
adjustment to abonferroni
adjustment by default. My question is: Is that the default behavior because it is the appropriate adjustment to use in this case? Or is there any better recommendation for what adjustment should be made if you are making many sets of treatment-vs-control comparisons, each of which should individually use thedunnettx
adjustment?Example code follows. If you need reproducible example please let me know.
Before rbinding, each group of emmeans has
P value adjustment: dunnettx method for 10 tests
.After rbinding, altogether it is
P value adjustment: bonferroni method for 110 tests
.At risk of repeating myself, thanks again for this great package!