Dear list,

I am making a linear regression of the following format.

lm(Y~X1+X2+log(X3)+log(X4))


Now I would like to check the linear regression above using generalized
linear model.
Please kindly if the following format is correct and thank you.
(If it is wrong, please indicate why.)

glm(Y~X1+X2+log(X3)+log(X4), family=poisson(link="log"))

Also, please kindly suggest any references comparing the codes of  lm and
glm.

Elaine

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to