[R] prediction from glm

From: hugues santin janin <hugues_sj_at_yahoo.fr>
Date: Thu 04 Aug 2005 - 23:58:35 EST

Hello r-help,

I try to fit birds counts over years using glm. I have done (with Estate and year as factors):

Model1 <- glm(Females~Estate+Year+offset = log(area)), family = quasipoisson(link = log), na.action = "na.exclude")

After I have calculated the prediction using:

Pred1 <- predict(Model1, type = "response", na.action = "na.exclude")  

My question is: How can I obtain predictions for Females in each year that are standardized by averaging over the levels of Estate?

I have been advised to use log(area) as an offset because we are actually interested in density of birds but would appreciate any good comparisons between offset and weight.  

Thanks in advance for any help you can give.  



"Game Conservancy Trust"                 

        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Aug 05 00:05:06 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:04:13 EST