Interactive dummy variables

Summary

Main points:

  • In a regression model, an interactive dummy variable is a product of a dummy variable and an explanatory variable, dixi,j,i=1,,n for any j=2,,k . dixi,j can take the value 0 or xi,j .
  • We can add an interactive dummy variable to our regression model:

yi=β1+β2xi,2+β3xi,3++βkxi,k+γdixi,2+εii=1,,n

  • The marginal effect of x2 of individuals coded as di=0 will be β2 .
  • The marginal effect of x2 of individuals coded as di=1 will be β2+γ . γ is the extra marginal effect that group 1 observations have compared to group 0 observations.
  • You can have many interactive dummy variables in a LRM, for example

yi=β1+β2xi,2+β3xi,3++βkxi,k+γ1dixi,2+γ2dixi,3+εii=1,,n

  • You can combine dummy variables and interactive dummy variables in the same regression, for example

yi=β1+β2xi,2+β3xi,3++βkxi,k+γ1di+γ2dixi,2+εii=1,,n