Displaying 1 result from an estimated 1 matches for "secondmodel".
2008 Mar 02
1
Poisson regression in R
...rst model, I think that I should use this code, but not sure:
> firstmodel<-glm(y~factor(age)*factor(car)*factor(dist),family=poisson)
As of the second model, I used this code, but it produces results that
contradict what the previous study says (and deleting intercept does not
help):
> secondmodel<-glm(y~age+car+factor(dist),family=poisson)
> summary(secondmodel)
Call:
glm(formula = y ~ age + car + factor(dist), family = poisson)
Deviance Residuals:
Min 1Q Median 3Q Max
-14.0258 -3.3200 -0.6296 2.0575 18.1442
Coefficients:
Estim...