Skip to content

OpenNewsLabs/one-regression-six-ways

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

one-regression-six-ways

Code and data for my blog post, 6 ways to run a "simple" regression, in which I ran a regression of health vs. income using the following 6 tools:

  • Excel
  • R
  • Stata
  • SAS
  • PSPP
  • Python (statsmodels)

In each of these tools, I ran the regression, drew diagnostic plots to assess the model fit, tried to identify outliers, and created a dataset with the fitted values and residuals.

I hope this will showcase the different approaches of each tool take toward running a simple linear regression.