Can anyone please explain the identity link and log link in Poisson regression with simple example? For example, I have run a script using the mtcars data set in R.
head(mtcars)
glm(mpg~disp+hp+wt, data=mtcars, family=poisson(link="identity"))
mpg, disp, and wt are variables in the data set. I got the results:
(Intercept)= 35.205669
Coefficient of disp=-0.004313
Coefficient of hp=-0.028214
Coefficient of wt=-3.102409
How do I interpret these coefficients? How does the model look like mathematically? What does link="identity" mean in the model?
glmin R. e.g. if you had data in a data framemydat, thenglm(y~x1+x2,data=mydat,family=poisson(link="identity"))would fit a Poisson regression with identity link. See?glmand?family. Questions purely about how to do something in R code (rather than the corresponding statistical aspects) are usually off topic here. Can you rephrase your question in a way that makes it both about statistics and so that it's clear what you seek? – Glen_b Feb 27 '16 at 01:06