Hello. I have been playing around with Stata to learn more statistics. I saw the shipped data sets and wanted to look at the relationship between a person's wages being above the median and race.
When I run this relationship I see that there is a negative coefficient on a person being Black
I then thought that location must explain wages but I was surprised that it also improved the wage difference
When I then ran the regression of south on race I see that Black individuals are more likely to live in the south
And that the south pays lower wages
How can I isolate how much of the relationship between a person being Black and their wages being above the median is due to the higher likelihood for Black individuals to live in the south versus Black individuals receiving lower wages regardless of location? In other words, how much of the first relationship "reg wagemedian black" is due to the higher likelihood of living in the south for Black individuals versus a general effect?
Also, how can I isolate this relationship between black and wagemedian as I add more to the equation like the industry people work in
Code:
clear all sysuse nlsw88 gen wagemedian = (wage > 6) gen black = race == 2
Code:
reg wagemedian black
Code:
reg wagemedian black south
Code:
reg black south
Code:
reg wagemedian south
Also, how can I isolate this relationship between black and wagemedian as I add more to the equation like the industry people work in
Code:
reg wagemedian black south i.industry
Comment