[R] predict glm() with offset

2012-10-31 Thread Lucas Chaparro
Dear R friends. I have a question about running a glm( family= 'binomial', *offset=T*), (I know offset is a vector of values) My doubt is about predicting the values on a new data. Does the predict() function considers the offset? o should I especified something? Here is the model I´m using: *mod

[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