Hi,
I am new to Stata and in need of an advice on how to translate my model specification into code. I have an individual level panel data set, including 11 million observations from 21 counties covering a period of 19 years. For the purpose of my project, I have 2 time dimensions- calendar (t) and event year (e). I want to use a difference in differences model with individual fixed effects, as well as to add county time fixed effects. The goal is to estimate the effect of being able to take sick leave before the first childbirth (event year -1) on the long term propensity to be on sick leave afterwards. There is an exogenous regional variation that affects the likelihood of the mother to get sick leave. The individual propensity to be on sick leave is measured by their history of sick leave withdrawals in the years before pregnancy (event years from -14 to -2).
This is my specification:
SLict = αi + Σ17e=-1 αφ 1[ e=φ ] +αtc+ Σ17e=-1 αφ 1[ e=φ ]* HL + βiXit + βcXct + εict
Where:
- SL is number of sick leave days per year for individual i, living in county c, in calendar year t
- αi is individual effect parameter which captures individual's propensity to be on sick leave during event years -14 to -2, which is to be used as a reference point
- αφ captures how much has the individual's propensity to be on sick leave has changed from its reference point during event years -1 to 17. The term in brackets is equal to 1 when φ=e (event year e=-1 to 17)
- αφ * HL is an interaction between the parameter capturing the individual propensity to be on sick leave in event years -1 to 17 and the county’s leniency in that year. HL is dummy variable indicating weather the county is lenient or strict on giving sick leave.
- αct county time fixed effects for given calendar year, because time trends are very regional
- Xit is an individual time varying covariant, individual characteristic that change over time, which includes indicator variables for additional children, length of education, work sector, mother’s income, father’s income, household’s disposable income.
- Xct county level characteristics that change over time, such as county level unemployment rates in calendar year.
My supervisor advised me to use xi:areg with absorb(id) and cluster(id). I don't know how to code it in a way that I can get all of the parameters for each event year. I'm confused about the whole code to be honest. It is way more complex than anything I have ever done. Therefore any help is more than welcome!
Related Posts with Event study/ DID/ Individual FE/ Time&County FE
Help needed for xtdcce2 with instrumentsDear community I am trying to estimate a model using cs-ardl method (xtdcce2). The model has to be …
How to drop observation if it doesn't have full date rangeHi all, I am trying to remove observations of TICKER's who don't have the full date range which is …
How do I interpret insignificant levels of categorical predictors in binomial logistic regression?Hello, I have a problem with interpreting the results of my binomial logistic regression. I am inve…
Stata command to estimate an IV probit or an IV logit in unbalanced panel datasetDear Statalist Users, I want to regress a binary outcome variable Yit (skill_comp) on a continuous …
Predict command using imputed dataHi everyone. I have used multiple imputation and I am trying to use the "predict" command but I can…
Subscribe to:
Post Comments (Atom)
0 Response to Event study/ DID/ Individual FE/ Time&County FE
Post a Comment