Hello list,

I am running a regression using

lm(Y~A+B+log(C)+log(D))


Now, I would like to test if glm can produce similar results.
So the code was revised as

glm(Y~A+B+C+D, family=poisson) (code 1)


However, I found some example using glm for lm.
It suggests that the code should be revised like
glm(Y~A+B+log(C)+log(D), family=poisson) (code 2)

Please kindly advise which  code is correct.
Thank you.

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