Linear Models in R - Part 2

Linear models
Keeping the examples aligned with changes in R since 2016.

Mauricio “Pachá” Vargas S.


July 13, 2023

A step-by-step explanation of how to fit a linear model. Here we cover GLM (Generalized Linear Models) but focus on the Poisson link and work with datasets that we have to download and join to produce a final dataset to explore the effects of distance, contiguity and colonial history on exports.

You can read more about the topics covered in:

  1. Linear Models with R (
  2. R for Data Science ( for the joins part


If you like this video and want to keep learning, I organize regular 1-hour workshops and 1:1 tutoring