[R] Help with glm and glht for analysing count data
marycrossland at gmail.com
Tue Nov 4 15:37:13 CET 2014
I’d like some help with analysing some count data. I am very new to R (and
statistical analysis for that matter!) and have done my best to work it out
on my own … but seemed to have got stuck!
I am looking at the effects of cutting hedges on invertebrates (I’m not
that interested in the difference of inverts collected on the east side of
a hedge compared to the west)
The experimental design consists of paired cut and uncut plots established
in 3 different hedgerow types. Invertebrate counts were taken from each
plot (6 plots overall) four times over 4 weeks.
Table 1. Example of data.
The data was very skewed and contained a fair few zero counts. I therefore
decided to use glm.
##I first started with a saturated model##
##Three way interactions are removed##
##anova tests whether the three way interaction is significant or not##
##I continued to strip down the model##
## I then looked to see whether just plot had an effect##
Plot was found to be significant. I then wanted to know where this was
coming from so looked at the glht function….
This showed Blackthorn to be significantly different to the other two
hedges which looking at a box plot seems about right. However if an
interaction between Plot and Cut.Uncut variables was found how would I
explore this further? The glht with Tukey specified seems to only work with
Apologies if my explanation is poor, I would be more than happy to give you
more information if it would help.
I’m not sure if anything I’ve done if right or even if I’m on the right
Any help would be fantastic!
[[alternative HTML version deleted]]
More information about the R-help