Sebastian Tello
  • Home
  • CV
  • Contact
  • Research
  • Resources
  • RMDA
  • APP
InstagramBluesky
📝

Interpreting Regression Coefficients

This worksheet will have practice exercises about reading and interpreting regression output. We'll work through a single dataset, building from simple to complex: basic interpretation, non-unit changes, omitted variable bias, quadratics and cubics, log outcomes, and interaction terms.

Dataset: We use sysuse nlsw88 (National Longitudinal Survey of Women, 1988), which is built into Stata. Key variables:

Variable
Description
Type
wage
Hourly wage ($)
Continuous
age
Age in years
Continuous
ttl_exp
Total work experience (years)
Continuous
tenure
Job tenure at current job (years)
Continuous
hours
Usual hours worked per week
Continuous
union
Union member (1=yes, 0=no)
Binary
collgrad
College graduate (1=yes, 0=no)
Binary
married
Married (1=yes, 0=no)
Binary

📊 Part 1: Basic Coefficient Interpretation

Regression 1a

Question 1: Interpret the coefficient on ttl_exp.

‣
Answer

Question 2: What does the constant (_cons) mean?

‣
Answer

Regression 1b: Adding a binary variable

Question 3: Interpret the coefficient on union.

‣
Answer

Question 4: Why did the coefficient on ttl_exp change from 0.331 to 0.323 when we added union?

‣
Answer

Regression 1c: Adding another binary variable

Question 5: Interpret the coefficient on collgrad.

‣
Answer

Question 6: What is the predicted wage for a non-union, non-college graduate with 10 years of experience?

‣
Answer

Question 7: What is the predicted wage for a union member, college graduate with 10 years of experience?

‣
Answer

📏 Part 2: Non-Unit Changes

💡

A regression coefficient gives you the effect of a one-unit change — but sometimes a one-unit change isn't the most meaningful quantity to report. For a k-unit change, simply multiply the coefficient by k.

Regression 2a

Question 8: The coefficient on age is -0.068. Does this mean being one year older is associated with earning 7 cents less per hour? Is that a meaningful quantity?

‣
Answer

Question 9: What is the association between a 10-year increase in age and wages?

‣
Answer

Regression 2b

Question 10: Working one more hour per week is associated with earning $0.09 more per hour. What is the association with working one standard deviation more hours per week? (The SD of hours is about 10.5)

‣
Answer

Regression 2c

Question 11: The coefficient on tenure is 0.042 and on experience is 0.264. A colleague says “tenure barely matters.” Is that a fair statement? (The SD of tenure is 5.5 and the SD of experience is 4.6.)

‣
Answer

⚠️ Part 3: Omitted Variable Bias (Sign of Bias)

The omitted variable bias formula tells us how a coefficient changes when we add a variable to the regression:

OVB Formula: β^short=β^long+δ^1⋅γ^\hat{\beta}_{short} = \hat{\beta}_{long} + \hat{\delta}_1 \cdot \hat{\gamma}β^​short​=β^​long​+δ^1​⋅γ^​

Where: - β^short\hat{\beta}_{short}β^​short​ = coefficient on X in the regression without the omitted variable - β^long\hat{\beta}_{long}β^​long​ = coefficient on X in the regression with the omitted variable - δ^1\hat{\delta}_1δ^1​ = coefficient of the omitted variable on Y (from the long regression) - γ^\hat{\gamma}γ^​ = coefficient of X on the omitted variable (from an auxiliary regression)

The sign of the bias = sign(δ^1\hat{\delta}_1δ^1​) x sign(γ^\hat{\gamma}γ^​)

Example 1: Omitting union status

Short regression (without union):

reg wage ttl_exp

     ttl_exp |   .3314291

Long regression (with union):

reg wage ttl_exp union

     ttl_exp |   .3234277
       union |   1.282932

Auxiliary regression (union on experience):

reg union ttl_exp

     ttl_exp |   .0050413

Question 12: Using the OVB formula, what is the sign of the bias from omitting union from regression reg wage ttl_exp?

‣
Answer

Example 2: Omitting experience

Short regression (without experience):

reg wage collgrad

    collgrad |   3.615502

Long regression (with experience):

reg wage collgrad ttl_exp

    collgrad |   3.260086
     ttl_exp |   .2983893

Auxiliary regression (experience on college):

reg ttl_exp collgrad

    collgrad |   1.191116

Question 13: What is the sign of the bias from omitting ttl_exp in the wage-on-college regression?

‣
Answer

Example 3: Omitting college

Short regression (without college):

reg wage tenure

      tenure |   .1858747

Long regression (with college):

reg wage tenure collgrad

      tenure |   .1629178
    collgrad |    3.43025

Auxiliary regression (college on tenure):

reg collgrad tenure

      tenure |   .0066925

Question 14: What is the sign of the bias from omitting collgrad?

‣
Answer

Question 15 (Thought Experiment): Suppose you run reg wage ttl_exp and you suspect that ability (unobserved) is an omitted variable. You believe more able people earn more wages and more able people also have more work experience. What is the sign of the bias?

‣
Answer

📈 Part 4: Quadratic and Cubic Terms (Non-Linear Marginal Effects)

⚡

When you include squared or cubed terms, the marginal effect of a variable depends on the level of that variable. You can't just "read off" a single coefficient anymore — you need to take the derivative.

Quadratic: tenure and tenure-squared

The equation is: Wage = 6.327 + 0.344(Tenure) - 0.009(Tenure^2)

Question 16: Can you interpret 0.344 as “one more year of tenure is associated with $0.34 more in wages”?

‣
Answer

Question 17: What is the formula for the marginal effect of tenure?

‣
Answer

Question 18: What is the marginal effect of one more year of tenure for someone with 1, 5, 10, 15, and 20 years of tenure?

‣
Answer

Question 19: At what level of tenure is the marginal effect zero (the “turning point”)?

‣
Answer

Cubic

Question 20: What is the marginal effect formula for the cubic? Evaluate it at of 1,5,10,15, and 20

‣
Answer

📝 Part 5: Log Dependent Variable – ln(y)

📌

Key rule: When the dependent variable is in logs, multiply the coefficient by 100 to get an approximate percent change in Y for a one-unit change in X.

Regression 5a

Question 21: Interpret the coefficient on ttl_exp.

‣
Answer

Question 22: What about a 5-year increase in experience?

‣
Answer

Regression 5b: ln(wage) with a binary variable

Question 23: Interpret the coefficient on union.

‣
Answer

Regression 5c: ln(wage) with multiple controls

Question 24: Interpret the coefficient on collgrad.

‣
Answer

ln(y) with a quadratic

Question 25: What is the marginal effect of tenure at tenure = 5?

‣
Answer

🔗 Part 6: Interaction Terms

Interaction terms let the effect of one variable depend on the level of another variable.

Continuous x Binary interaction

The equation is: Wage = 2.98 + 0.333(Exp) + 1.819(Union) - 0.041(Exp x Union)

Question 26: What is the effect of one more year of experience for non-union workers?

‣
Answer

Question 27: What is the effect of one more year of experience for union workers?

‣
Answer

Question 28: What does the coefficient on union (1.819) mean in the interaction model?

‣
Answer

Binary x Binary interaction

Question 29: Interpret each coefficient.

‣
Answer

Question 30: What is the predicted wage for each of the four groups?

‣
Answer

Question 31: What is the “effect of college” for each group?

‣
Answer

Question 32: What is the “effect of being in a union” for each group?

‣
Answer
sysuse nlsw88, clear

summarize wage age ttl_exp tenure hours union married collgrad

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
        wage |      2,246    7.766949    5.755523   1.004952   40.74659
         age |      2,246    39.15316    3.060002         34         46
     ttl_exp |      2,246    12.53498    4.610208   .1153846   28.88461
      tenure |      2,231     5.97785    5.510331          0   25.91667
       hours |      2,242    37.21811    10.50914          1         80
       union |      1,878    .2454739    .4304825          0          1
     married |      2,246    .6420303    .4795099          0          1
    collgrad |      2,246    .2368655    .4252538          0          1
reg wage ttl_exp

------------------------------------------------------------------------------
        wage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
     ttl_exp |   .3314291   .0254087    13.04   0.000     .2816021    .3812562
       _cons |   3.612492   .3393469    10.65   0.000     2.947026    4.277959
------------------------------------------------------------------------------
reg wage ttl_exp union

------------------------------------------------------------------------------
        wage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
     ttl_exp |   .3234277   .0192905    16.77   0.000     .2855947    .3612607
       union |   1.282932   .2064182     6.22   0.000     .8780982    1.687765
       _cons |   3.104682   .2650058    11.72   0.000     2.584944    3.624419
------------------------------------------------------------------------------
reg wage ttl_exp union collgrad

------------------------------------------------------------------------------
        wage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
     ttl_exp |   .2954401   .0181754    16.25   0.000     .2597941    .3310862
       union |   .9926316    .194432     5.11   0.000     .6113056    1.373958
    collgrad |   3.125986   .1947131    16.05   0.000     2.744108    3.507863
       _cons |   2.762356   .2494487    11.07   0.000      2.27313    3.251583
------------------------------------------------------------------------------
reg wage age

------------------------------------------------------------------------------
        wage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
         age |  -.0680236   .0396796    -1.71   0.087    -.1458362     .009789
       _cons |   10.43029   1.558318     6.69   0.000     7.374394    13.48618
------------------------------------------------------------------------------
reg wage hours

------------------------------------------------------------------------------
        wage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
       hours |   .0871891   .0114282     7.63   0.000     .0647782       .1096
       _cons |   4.529512   .4419583    10.25   0.000     3.662821    5.396202
------------------------------------------------------------------------------
reg wage tenure ttl_exp union collgrad

------------------------------------------------------------------------------
        wage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
      tenure |   .0416013   .0184145     2.26   0.024     .0054862    .0777165
     ttl_exp |   .2644458   .0224606    11.77   0.000     .2203951    .3084964
       union |   .9325779   .1963707     4.75   0.000     .5474482    1.317708
    collgrad |   3.113277   .1951204    15.96   0.000       2.7306    3.495955
       _cons |   2.915269   .2568196    11.35   0.000     2.411584    3.418953
------------------------------------------------------------------------------
gen tenure_sq = tenure^2

reg wage tenure tenure_sq

------------------------------------------------------------------------------
        wage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
      tenure |   .3436887   .0709456     4.84   0.000     .2045623     .482815
   tenure_sq |  -.0089112   .0038125    -2.34   0.020    -.0163877   -.0014347
       _cons |   6.326825   .2331543    27.14   0.000     5.869602    6.784047
------------------------------------------------------------------------------
gen tenure_cu = tenure^3

reg wage tenure tenure_sq tenure_cu

------------------------------------------------------------------------------
        wage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
      tenure |    .669679   .1531085     4.37   0.000     .3694286    .9699294
   tenure_sq |  -.0532765   .0188591    -2.82   0.005    -.0902598   -.0162933
   tenure_cu |   .0014999   .0006244     2.40   0.016     .0002753    .0027244
       _cons |   5.911303   .2901234    20.38   0.000     5.342363    6.480244
------------------------------------------------------------------------------
gen ln_wage = ln(wage)

reg ln_wage ttl_exp

------------------------------------------------------------------------------
     ln_wage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
     ttl_exp |   .0479908   .0024281    19.76   0.000     .0432293    .0527524
       _cons |   1.267081   .0324288    39.07   0.000     1.203487    1.330674
------------------------------------------------------------------------------
reg ln_wage ttl_exp union

------------------------------------------------------------------------------
     ln_wage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
     ttl_exp |   .0469444     .00231    20.32   0.000     .0424138    .0514749
       union |   .1978223   .0247187     8.00   0.000     .1493431    .2463014
       _cons |   1.239462   .0317347    39.06   0.000     1.177223    1.301701
------------------------------------------------------------------------------
reg ln_wage ttl_exp union collgrad

------------------------------------------------------------------------------
     ln_wage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
     ttl_exp |   .0436613   .0021826    20.00   0.000     .0393808    .0479418
       union |   .1637691   .0233481     7.01   0.000     .1179781    .2095601
    collgrad |   .3666886   .0233818    15.68   0.000     .3208314    .4125457
       _cons |   1.199306   .0299547    40.04   0.000     1.140558    1.258054
------------------------------------------------------------------------------
reg ln_wage tenure tenure_sq

------------------------------------------------------------------------------
     ln_wage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
      tenure |   .0610446   .0068122     8.96   0.000     .0476856    .0744035
   tenure_sq |  -.0016852   .0003661    -4.60   0.000    -.0024031   -.0009673
       _cons |   1.619121   .0223875    72.32   0.000     1.575218    1.663023
------------------------------------------------------------------------------
gen exp_union = ttl_exp * union

reg wage ttl_exp union exp_union

------------------------------------------------------------------------------
        wage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
     ttl_exp |   .3332387   .0221313    15.06   0.000      .289834    .3766433
       union |   1.818676   .6272113     2.90   0.004       .58857    3.048782
   exp_union |  -.0408489   .0451587    -0.90   0.366    -.1294154    .0477177
       _cons |   2.980311   .2985617     9.98   0.000     2.394762    3.565859
------------------------------------------------------------------------------
gen union_collgrad = union * collgrad

reg wage union collgrad union_collgrad

------------------------------------------------------------------------------
        wage | Coefficient  Std. err.      t    P>|t|     [95% conf. interval]
-------------+----------------------------------------------------------------
       union |   1.454899   .2462993     5.91   0.000     .9718493    1.937949
    collgrad |   3.748679   .2453873    15.28   0.000     3.267418     4.22994
union_coll~d |  -1.098846   .4553523    -2.41   0.016    -1.991897   -.2057956
       _cons |    6.36869   .1158806    54.96   0.000     6.141421    6.595958
------------------------------------------------------------------------------