[R] Tukey in R, extracting values

Dieter Menne dieter.menne at menne-biomed.de
Thu Apr 10 19:54:11 CEST 2008


mad_bassie <mad_bassie <at> hotmail.com> writes:
> how can i extract the values from the CI's when i use following code for a
> tukey test?
> the output shows three CI's and i know it should work with 'names but i
> don't really know how...

You forgot to post a self-running example. Chances are always better to get an
answer if you include one more line that makes the examples reproducible on
other computers. R is complex, so only very few people immediately see what was
wrong without try it (and thus avoiding typos).

Dieter


library(multcomp)
# Please include a line like the following next time
data1 =data.frame(waarde = rnorm(100), soort=sample(1:3,100,replace=TRUE))
data1$soort<-as.factor(data1$soort)
amod<-aov(waarde~soort,data=data1)
g<-glht(amod, linfct=mcp(soort = "Tukey"))
confint(g)
coef(g)
vcov(g)



More information about the R-help mailing list