[R-sig-ME] Doubt about including random effects or not
V. Coudrain
v_coudrain at voila.fr
Mon Nov 11 13:45:23 CET 2013
Dear all,
I collected insects in 30 sites, 15 sites each with a level of isolation and all 30 sites are arranged along a gradient of habitat amount. Each insect species has a
specialization value. I would like to test if specialization increases along the gradient of habitat and differs between isolation level. The number of insect species and
individuals differ largely between sites. I have two doubts: should I specify site as a random variable? Should I specify insect abundance as an offset?
The model I thought about: lme(specialization~Isolation*habitat amount + offset(insect abundance) , random~1|Site)
However I am not sure about using site as a random effect and specifically if it makes sense to mix offset and random effect.
Thank you!
Valérie Coudrain
___________________________________________________________
Qu'y a-t-il ce soir à la télé ? D'un coup d'œil, visualisez le programme sur Voila.fr http://tv.voila.fr/programmes/chaines-tnt/ce-soir.html
More information about the R-sig-mixed-models
mailing list