> x
Year Depth Biomass1 Biomass2
1 199910 14.3 14.7
2 199915 14.7 15.6
> require(reshape)
> melt(x, id=c('Year','Depth'))
Year Depth variable value
1 199910 Biomass1 14.3
2 199915 Biomass1 14.7
3 199910 Biomass2 14.7
4 199915 Biomass2 15.6
On Sun, N
Ah, I believe I constructed my *.csv wrong in that I only had 1 observation
within groups whereas I needed at least 2.
Originally I had:
Year Depth Biomass1 Biomass2
1999 10 14.3 14.7
1999 15 14.7 15.6
etc.
but I switched this to:
Year
If I've understood correctly, you have cell sizes of 1. This is not enough.
ANOVA compares within group variance to between group variance, and
your within group variances are zero.
You need more data, or to collapse some cells.
Jeremy
2009/11/8 znd :
>
> Hello, I'm new to R and have been f
Hello, I'm new to R and have been following many guides including the two-way
anova (http://www.personality-project.org/r/r.anova.html). Using that
walkthrough including the supplied data I do str(data.ex2) and receive the
appropriate types of data as follows:
> str(data.ex2)
'data.frame': 16 o
4 matches
Mail list logo