ERROR: no applicable method for "TukeyHSD"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ERROR: no applicable method for "TukeyHSD"

Darren Weber-2
Why do I see this error?

> library(stats)
> require(stats)
[1] TRUE
>
> tHSD <- TukeyHSD(aov)
Error in TukeyHSD(aov) : no applicable method for "TukeyHSD"


In case it helps:


> aov

Call:
aov(formula = roi ~ (Cue * Hemisphere) + Error(Subject/(Cue *
    Hemisphere)), data = roiDataframe)

Grand Mean: 8.195069

Stratum 1: Subject

Terms:
                Residuals
Sum of Squares   645.7444
Deg. of Freedom         7

Residual standard error: 9.604645

Stratum 2: Subject:Cue

Terms:
                     Cue Residuals
Sum of Squares  0.386987  4.015740
Deg. of Freedom        1         7

Residual standard error: 0.7574148
1 out of 2 effects not estimable
Estimated effects are balanced

Stratum 3: Subject:Hemisphere

Terms:
                Hemisphere Residuals
Sum of Squares    153.4860  827.6699
Deg. of Freedom          1         7

Residual standard error: 10.87376
1 out of 2 effects not estimable
Estimated effects are balanced

Stratum 4: Subject:Cue:Hemisphere

Terms:
                Cue:Hemisphere Residuals
Sum of Squares        5.085930  4.279707
Deg. of Freedom              1         7

Residual standard error: 0.7819122
Estimated effects are balanced
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: (user) ERROR: no applicable method for "TukeyHSD"

Brian Ripley
On Wed, 8 Feb 2006, Darren Weber wrote:

> Why do I see this error?

Because there _is_ no applicable method.

Please don't name objects after R functions, but in your case you need to
do

class(aov)
?TukeyHSD
?aov

and see what TukeyHSD says it handles and what aov says it returns.

This question has been answered at length on this list quite recently, so
please also search the archives.


>> library(stats)
>> require(stats)
> [1] TRUE
>>
>> tHSD <- TukeyHSD(aov)
> Error in TukeyHSD(aov) : no applicable method for "TukeyHSD"
>
>
> In case it helps:
>
>
>> aov
>
> Call:
> aov(formula = roi ~ (Cue * Hemisphere) + Error(Subject/(Cue *
>    Hemisphere)), data = roiDataframe)
>
> Grand Mean: 8.195069
>
> Stratum 1: Subject
>
> Terms:
>                Residuals
> Sum of Squares   645.7444
> Deg. of Freedom         7
>
> Residual standard error: 9.604645
>
> Stratum 2: Subject:Cue
>
> Terms:
>                     Cue Residuals
> Sum of Squares  0.386987  4.015740
> Deg. of Freedom        1         7
>
> Residual standard error: 0.7574148
> 1 out of 2 effects not estimable
> Estimated effects are balanced
>
> Stratum 3: Subject:Hemisphere
>
> Terms:
>                Hemisphere Residuals
> Sum of Squares    153.4860  827.6699
> Deg. of Freedom          1         7
>
> Residual standard error: 10.87376
> 1 out of 2 effects not estimable
> Estimated effects are balanced
>
> Stratum 4: Subject:Cue:Hemisphere
>
> Terms:
>                Cue:Hemisphere Residuals
> Sum of Squares        5.085930  4.279707
> Deg. of Freedom              1         7
>
> Residual standard error: 0.7819122
> Estimated effects are balanced
>>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

--
Brian D. Ripley,                  [hidden email]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html