Re: [R] Tukey in R, extracting values

From: Dieter Menne <dieter.menne_at_menne-biomed.de>
Date: Thu, 10 Apr 2008 17:54:11 +0000 (UTC)

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)



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 10 Apr 2008 - 18:01:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 10 Apr 2008 - 18:30:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive