[R] Error in contrasts adding bonferroni adjustment
|@ur@coco @end|ng |rom gm@||@com
Sat Jan 9 04:30:16 CET 2021
I am trying to add a Bonferroni adjustment to two comparisons, and I'm
getting an error msg.
The contrasts run just fine; I used a contrast matrix with dummy
vs Control at post1 (first contrast) and Experimental vs Control at post2
contrast.outcome <-contrast(emmeans.outcome, method =
list("experimental_post1 - control_post1" = c(1, 0, -1, 0),
"experimental_post2 - control_post2" = c(0, 1, 0, -1), adjust = "bonf"))
The code runs except when I add the adjust = "bonf" - The error is "Error
in tcmat %*% linfct : requires numeric/complex matrix/vector arguments"
I see many tutorials online about adjusting in pairwise comparisons and
ANOVA but not in this situation. Any guidance you can provide would be much
[[alternative HTML version deleted]]
More information about the R-help