Re: [R] zero values in LHS and RHS

From: Gregor Gorjanc <gregor.gorjanc_at_bfro.uni-lj.si>
Date: Wed 02 Aug 2006 - 14:05:13 EST

zubin <binabina <at> bellsouth.net> writes:

>
> Hello!
>
> I have a data set where i need to predict hotel stays in a 3 month
> period by customer. I have stays for each customer in the 3 month
> period and the previous 3 month period + other variables. these stays
> contain an integer that ranges from 0 to 10. classic poisson distribution.
>
> my question is around zeros. usually we could take logs on the stays
> and run an OLS model i think an enhancement would be to fit a poisson
> GLM model. i am confused about handling of zeros. i will have zero
> values on the RHS and potentially on the LHS. It seems like the poisson
> GLM model can handle zeros on the LHS and RHS. i guess my question is
> fitting a poisson GLM, are zeros allowed? If so, how is this estimated
> with a log link function?
>

I am not sure about the structure of LHS and RHS matrices, but yes, Poisson model can handle zeroes. If it turns out that there are to many zeroes as expected, you might try ZIP model.

Log link is the default for Poisson and it links the expected value of Poisson distribution and not the values itself.

Gregor



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 and provide commented, minimal, self-contained, reproducible code. Received on Wed Aug 02 14:10:11 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 02 Aug 2006 - 16:19:32 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.