Session Ready
Exercise

Comparing linear and Poisson regression

During this exercise, you will fit a linear regression and see how the models produce different results than the Poisson regression you previously fit. In the previous exercise, you fit a GLM with a Poisson family, poisson_out. This object has been provided for you. Now, using glm(), fit a glm() with a normal or Gaussian family.

Instructions 1/2
undefined XP
  • 1
  • 2
  • Fit a GLM with a gaussian family where count is predicted by time using data.frame dat.
  • Print the summary for lm_out model first and the poisson_out model second and notice the different test-statistics and p-values.