Skip to content
Prev 138244 / 398506 Next

glm: offset

On Mon, 3 Mar 2008, Ted.Harding at manchester.ac.uk wrote:

            
Yes, and that is how it is defined in R too -- see ?offset.

The issue is more what you want to do with the offset.  In a Poisson 
regression, the offset is most often used to include exposure time, the 
Poisson model being for log rate.  Thus

mu = lambda*T, log(lamba) = Xb

means

log(mu) = Xb + log(T)

is the model for Poisson counts of occurrences in time intervals and hence 
the offset is log(T).

As ?offset hints, there are examples under ?glm (taken from MASS) and for 
dataset Insurance in package MASS.  One with non-logged offset and one 
with ....