Re: [R] Error for TukeyHSD ?

2007-07-19 Thread Richard M. Heiberger
TukeyHSD, and glht in the multcomp package, are designed for
aov objects.  They do not have methods for aovlist objects.

The workaround is to download and install the HH package and look at the
maiz example.

library(HH)
?MMC

In that example I show how to get the same sequential sum of squares
without the Error() term as you would get with the Error term.

Rich

__
R-help@stat.math.ethz.ch 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.


[R] Error for TukeyHSD ?

2007-07-19 Thread Silvia Lipski
Hi,

one question about TukeyHSD in R:

it seems to work only for models without Error terms but not when an  
Error is specified:

Examples:

aov1<-aov(MMN_ind~(GenCond*Lang)+Error(VP),data=cutie_all)
TukeyHSD(aov1,"Lang",ordered=TRUE,conf.level = 0.95)
--> the German error  message tells me its not a method that can be  
used with TukeyHSD:
Fehler in TukeyHSD(aov1, ordered = TRUE, conf.level = 0.95) :
 keine anwendbare Methode für "TukeyHSD"

A model like this is no problem:
aov1<-aov(MMN_ind~(GenCond*Lang,data=cutie_all)

I am very grateful for any help!
Silvia

-- 
Dr. Silvia C. Lipski
University of Konstanz, Department of Linguistics, Neurolinguistics
Fach D 185, 78457 Konstanz, Germany
Tel: +49 7531 88-2927
Fax: +49 7531 88-2741
Email: [EMAIL PROTECTED]
www.uni-konstanz.de/FuF/Philo/Sprachwiss/neuroling/Lipski.html

__
R-help@stat.math.ethz.ch 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.