[R] Help in using multcomp.
A Ezhil
ezhil02 at yahoo.com
Fri Feb 9 14:49:30 CET 2007
Hi All,
I am trying use 'multcomp' for multiple comparisons
after my ANOVA analysis. I have used the following
code to do ANOVA:
dat <- matrix(rnorm(45), nrow=5, ncol=9)
f <- gl(3,3,9, label=c("C", "Tl", "T2"))
aof <- function(x) {
m <- data.frame(f, x);
aov(x ~ f, m)
}
amod <- apply(dat,1,aof)
Now, how can I use 'glht' for the above amod. I know
that I cannot use simply
glht(amod, linfct = mcp(f = "Dunnett")).
Also, if I want to use Dunnett for comparing C vs (T1
and T2), how can I specify this in the glht function.
Thanks in advance.
Regards,
Ezhil
More information about the R-help
mailing list