[R] over-estimation Negative Binomial models
D_Tomas
tomasmeca at hotmail.com
Tue Oct 18 14:30:25 CEST 2011
Ben,
this is a continuation of the query i posted on:
http://r.789695.n4.nabble.com/GLM-and-Neg-Binomial-models-td3902173.html
I cannot give you a direct example (big dataset) of what i did aside from
what i have written:
fitpoisson <- glm((RESPONSE) ~ A + B +
offset(log(LENGTH)) + offset(log(LENGTH_OBSERVATION)),family="poisson",data=
dataset)
fitneg <- glm.nb((RESPONSE) ~ A + B +
offset(log(LENGTH)) + offset(log(LENGTH_OBSERVATION)),data= dataset)
> sum(fitted(fitpoisson))
[1] 373
> sum(fitted(fitneg))
[1] 514
Observed data is 373....
Any thoughts?
tomas
--
View this message in context: http://r.789695.n4.nabble.com/over-estimation-Negative-Binomial-models-tp3912692p3915162.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list