Re: [R] Tukey tests in two-way ANOVA

2017-05-15 Thread Richard M. Heiberger
you have only one df for site and one df for year. most likely you skipped the step of telling R those are factors. On Mon, May 15, 2017 at 1:40 PM, Lucy McMahon wrote: > R-help: > > I'm looking into the abundance of an algal species over site and years using > a two-way ANOVA: > >> summary (ao

Re: [R] Tukey tests in two-way ANOVA

2017-05-15 Thread peter dalgaard
I think you forgot to turn site and year into factors. (The 1 Df is the giveaway). -pd > On 15 May 2017, at 19:40 , Lucy McMahon wrote: > > R-help: > > I'm looking into the abundance of an algal species over site and years using > a two-way ANOVA: > >> summary (aov (fserratus ~ site+year))

[R] Tukey tests in two-way ANOVA

2017-05-15 Thread Lucy McMahon
R-help: I'm looking into the abundance of an algal species over site and years using a two-way ANOVA: > summary (aov (fserratus ~ site+year)) Df Sum Sq Mean Sq F value Pr(>F) site 1 1487 1486.6 6.094 0.0155 * year 1 1173 1172.8