Session Ready
Exercise

Building the model

As part of the model building process, first build a simple Poisson regression. A glm() runs quicker than glmer() and is easier to debug. For example, the Poisson regression might catch if you have non-integer data. Plus, the Poisson regression can provide intuition about the more complicated model.

If you run into any problems, follow the instructions to fix your data.

Last, build and save a repeated-measures Poisson regression.

Instructions 1/4
undefined XP
  • 1
  • 2
  • 3
  • 4
  • Build a Poisson regression with the glm() function by setting family to "poisson".
  • Model how the TotalIncidents of hate crimes are predicted by Year and County as fixed-effects in your formula using the hate data frame.