[R] horsekicks

Göran Arnoldsson Goran.Arnoldsson at stat.umu.se
Tue Nov 27 09:09:17 CET 2001


A log-linear fit with offset and linear predictor that reflects the 
Poisson hypothesis does it:

 > glm(years~offset(log(sum(years))-lgamma(deaths+1))+deaths,family=poisson)

...

Coefficients:
(Intercept)       deaths 
    -0.6100      -0.4943 

Degrees of Freedom: 6 Total (i.e. Null);  5 Residual
Null Deviance:        36.23
Residual Deviance: 0.8668     AIC: 27.34

...

Note that the intercept estimates mu directly whereas the slope does 
this indirectly: exp(-0.4943) = 0.6099978.
More details can be found in J.K. Lindsey: "Applying Generalized Linear 
Models", Springer, 1997, ch. 3.

Göran Arnoldsson
Deapartment of statistics
Umeå University
Sweden


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list