From the course: Advanced and Specialized Statistics with Stata
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Solution: Interaction effects - Stata Tutorial
From the course: Advanced and Specialized Statistics with Stata
Solution: Interaction effects
(upbeat pop music) - [Instructor] Let's have a look at the solutions to our Interaction Effect challenge using the nlsw data. There was only one challenge, to create and interpret a complicated regression model. The challenge was to estimate the probability of being a union member using the variables wage, country, married and grade. So, before we do anything else, let's build a simple model and let's take a look at the dependent variable, union membership. Let's tabulate it. Tab union. We see that 25% of our sample are union members. And 75% of our sample are not union members. To estimate this kind of model, we're going to use a logit model. So, let's go ahead and construct a basic logit model. Logit union is a function of the continuous variable, wage. The categorical variable, country. The categorical variable, married. And the continuous variable, grade. The next step is to interact wage, country and married…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
What is an interaction effect?3m 54s
-
(Locked)
How to use margins and marginsplot6m 37s
-
(Locked)
Continuous polynomial interactions5m 49s
-
(Locked)
Continuous by continuous interactions6m 19s
-
(Locked)
Categorical by categorical interactions5m 46s
-
(Locked)
Categorical by linear interactions5m 37s
-
(Locked)
Challenge: Interaction effects43s
-
(Locked)
Solution: Interaction effects5m 13s
-
-
-
-
-
-