Re: [R] Fwd: Re: Poisson GLM using non-integer response/predictors?

2011-12-30 Thread Matthias Gondan
Hi Ben, Thanks for clarifying this, I used a misleading word, "model" the observation time sounds as if observation time were the dependent variable - which it is not, of course, instead, in the scenario described, the parrot counts are modeled. Best wishes, Matthias Am 30.12.2011 20:50, sc

Re: [R] Fwd: Re: Poisson GLM using non-integer response/predictors?

2011-12-30 Thread Ben Bolker
Matthias Gondan gmx.de> writes: > > Hi, > > Use offset variables if count occurrences of an event and you want to > model the > observation time. > > glm(count ~ predictors + offset(log(observation_time)), family=poisson) > > If you want to compare durations, look at library(survival), ?coxp

[R] Fwd: Re: Poisson GLM using non-integer response/predictors?

2011-12-30 Thread Matthias Gondan
Hi, Use offset variables if count occurrences of an event and you want to model the observation time. glm(count ~ predictors + offset(log(observation_time)), family=poisson) If you want to compare durations, look at library(survival), ?coxph If tnoise_sqrt is the square root of tourist noise,