I am working with trees that we measure annually and trying to run an Anova on growth and survival compared to tree species and the planting stock type (bareroot, containerized, etc). Some of these individuals experience 'dieback' show they will have negative 'growth' between years and some individuals die.
I keep getting an error message when I try to run an Anova on growth but not on survival which I have set up as binary.
The first image is my data in excel that is saved as an CSV showing how I have put periods in the growth columns for trees that died and negative values for those who experienced dieback.
To get my stuff into R I have been using
data=read.csv(file.choose()) -- then obviously selecting my .csv
attach(data)
Then when I run
htgrowth.aov=aov(HTGrowth~SPECIES*POT)
I receive the following error message.
However, if I run
survival.aov=aov(SURVIVAL~SPECIES*POT)
summary(survival.aov)
I get the expected Anova table that I need and am able to then run a TukeyHSD on it as well.
I am guessing that because I have missing data and negative numbers is the reason that I cannot get it to run.
I have looked around for answers but I cannot figured out how to fix it, I do apologize if this has been addressed and I am just too dumb to find it.