Yi(1): log weekly wage of unit i if it was born in the beginning half year.
Yi(0): log weekly wage of unit i if it was born in the end half year.
Wi: equals to 1 if unit i was born in the beginning half year and 0 if born in the end half year.
Xi: covariates of unit i such as place of birth
Discussions:
SUTVA: I think it's violated. Because even if two units were both born in the beginning half year, they surely could be different if one was born in January and the other was born in June, which could lead to at most 6 months education duration difference.
Individualistic: I think it holds. Whether a unit was born in the beginning half year or end half year doesn't depend on other units.
Probabilistic: I think it holds. Whatever was given, it could not decide when the unit would be born.
Unconfounded: I think it holds. Given the place of birth, how much a unit would earn weekly doesn't depend on when it was born.
Problem 1. Traditional regression
a
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Call: lm(formula = log_week_wage ~ birthtime, data = data)
Residuals: Min 1Q Median 3Q Max -8.2485 -0.2757 0.0473 0.3474 3.3057
Residual standard error: 0.6366 on 9998 degrees of freedom Multiple R-squared: 1.469e-06, Adjusted R-squared: -9.855e-05 F-statistic: 0.01469 on 1 and 9998 DF, p-value: 0.9035
Birth time has no effect on log weekly wage.
b
Covariates seem to be balanced between the two groups. My faith in (a) would not be changed by this.
c
I choose year of birth. This should be controlled because only when this is controlled will birth time be able to indicate compulsory education length. The result is
Residual standard error: 0.6367 on 9989 degrees of freedom Multiple R-squared: 0.0006683, Adjusted R-squared: -0.0003321 F-statistic: 0.668 on 10 and 9989 DF, p-value: 0.7552
Residual standard error: 0.5981 on 9997 degrees of freedom Multiple R-squared: 0.1174, Adjusted R-squared: 0.1172 F-statistic: 664.9 on 2 and 9997 DF, p-value: < 2.2e-16
Residual standard error: 0.5979 on 9988 degrees of freedom Multiple R-squared: 0.1186, Adjusted R-squared: 0.1176 F-statistic: 122.1 on 11 and 9988 DF, p-value: < 2.2e-16
It turns negative. This happens because the correlation between birth time and other variables. Regression is not ideal because Wi⊥(Yi(1),Yi(0)) cannot be guaranteed in observational data, which causes that the estimation for the coefficient of Wi depends on the model selection.
Problem 2. Design
a
1 2 3 4 5 6 7 8 9
load("CPSS-HW6-dataset/data.Rdata")
ps_model <- glm( birthtime ~ education + yearofbirth + placeofbirth, data = data, family = binomial(link ="logit") )