Displaying 1 result from an estimated 1 matches for "cond1_minus_cond2".
2012 Dec 05
1
Using multcomp::glht() with Anova object
...omparisons between all levels of Condition
using glht() from the multcomp package. I do this using the way that has
worked for me with lmer() objects in the past: set up a contrast matrix and
then feed it to glht():
designmatrix <- matrix(0, nrow=3, ncol=18)
rownames(designmatrix) <- c("Cond1_minus_Cond2", "Cond3_minus_Cond1",
"Cond3_minus_Cond2")
designmatrix[1, 1:6] <- 1
designmatrix[1, 7:12] <- -1
designmatrix[2, 1:6] <- -1
designmatrix[2, 13:18] <- 1
designmatrix[3, 13:18] <- 1
designmatrix[3, 7:12] <- -1
library(multcomp)
glht( model.Anova, linfct=d...