Displaying 1 result from an estimated 1 matches for "tp2993845p2996772".
2010 Oct 13
1
interaction contrasts
hello list,
i'd very much appreciate help with setting up the
contrast for a 2-factorial crossed design.
here is a toy example:
library(multcomp)
dat<-data.frame(fac1=gl(4,8,labels=LETTERS[1:4]),
fac2=rep(c("I","II"),16),y=rnorm(32,1,1))
mod<-lm(y~fac1*fac2,data=dat)
## the contrasts i'm interressted in:
c1<-rbind("fac2-effect in