se.contrast.aov(object, contrast.obj, coef = contr.helmert( ncol(contrast))[, 1], data=NULL) se.contrast.aovlist(object, contrast.obj, coef = contr.helmert( ncol(contrast))[, 1], data=NULL)
In multistrata models, the means are assumed to be computed from the lowest stratum where an effect appears. The standard errors of the contrasts are adjusted for efficiencies (see eff.aovlist), and different standard errors are given when comparisons are made between and within strata (this is relevant for split plot designs, for instance).
se.contrast(gun.aov, list(Team == "T1" & Physique== "S", Team=="T2",Physique=="S"), data = gun) #for all pairwise contrasts between Physiques: attach(gun) cont <- cbind(Physique == "S", Physique == "A", Physique == "H") contr.means <- cbind(c(1, -1, 0),contr.sum(levels(Physique)))/ as.vector(table(Physique)) cont <- cont %*% contr.means dimnames(cont)[[2]] <- paste(c("S","S","A"), "and", c("A","H","H")) se.contrast(gun.aov, contrast=cont, data = NULL)