[R] basic question predict GLM offset

2012-04-14 Thread smfa
Hi, I know this is probably a basic question... But I don't seem to find the answer. I'm fitting a GLM with a Poisson family, and then tried to get a look at the predictions, however the offset does seem to be taken into consideration: model_glm=glm(cases~rhs(data$year,2003)+lhs(data$year,200

[R] predict GLM with offset MASS

2012-04-13 Thread smfa
Hi, I know this is probably a stupid question... But I don't seem to find the answer. I'm fitting a GLM with a Poisson family, using MASS, and then tried to get a look at the predictions, however the offset does seem to be taken into consideration: model_glm=glm(cases~rhs(data$year,2003)+lhs(d