1. Learn
  2. /
  3. Courses
  4. /
  5. Causal Inference with R - Regression

Exercise

Running a Regression Model: A Simple Beginning

Dr. Max Funn is interested in understanding the effect of income on happiness. He has a small sample of the General Social Survey (GSS), which asked respondents about their income and happiness independently. Although Dr. Funn predicts that income is positively associated with happiness, he is worried that the relationship between income and happiness might be confounded by their joint relationship with the number of hours worked. But before we get into confounders, let's start with a simpler model that helps Dr. Funn look for signs of any relationship between income and happiness.

Using the dataset GSS, help Dr. Max Funn measure the effect of income on happiness by examining the data and running a simplified generalized linear regression model.

Instructions

100 XP
  • 1) Examine the dataframe GSS.
  • 2) Look at summary statistics of three key variables.
  • 3) Look at a simple correlation statistic between income and happiness.
  • 4) Construct a regression model that measures the effect of income on happiness.