As a robustness check for my main model, I attempt to run a set of quantile regressions for an instrumental variable model with the fixed effect. The instrumental variable model includes both birth year and birth state fixed effect. The standard errors are clustered at the birth state level.
In my main analysis, the model is defined by the following code:
Code:
ivreg2 cognition (infl_pneumonia_rate1000=inter) female agesurvey black postsulfa `postAtheen' i.birth_year i.birth_state if eduqt == 5, cluster(birth_state) partial(i.birth_year i.birth_state)
Code:
bootstrap, cluster(birth_state) idcluster(birth_state2) seed(22): ivqreg2 cognition infl_pneumonia_rate1000 female agesurvey black postsulfa `postAtheen' by* bs*, inst(inter female agesurvey black postsulfa `postAtheen' by* bs*) q(0.1(0.1).9)
Thanks in advance!
0 Response to Best way to do quantile regression for instrumental variable model with fixed effect
Post a Comment