Hi
I am writing my first thesis paper. I have a panel data of 140 developing countries for the year 1997-2015 and my main explanatory variable is implementation of paternity leave law which is dummies but not time invariant. My purpose is to see the impact of the law on gender employment gap.
Now my problem is I want use diff and diff method to graph and see if there is a parallel trend or not between the countries having paternity leave from 2004-2012 and 2013-2015. Here I need your suggestion too how can I set the model and work with the data?
At first I did run OLS to see the impact where I got highly significant results. Then ran fe and got insignificant result at the end.
xtreg emp_gap1 pat_law (control variables), fe cluster(id)

gen treatment = 1 if id==1 | id==2| id==4 | id==5 | id==6 | id==7 | id==8 | id==9 | id==14| id==16 | id==19 | id==20 | id==22 | id==24| id==25 | id==26 | id==28 | id==29 | id==31 | id==32 | id==33 | id==35 | id==38 | id==41 | id==43 | id==44| id==47 | id==49 | id==54 | id==55 | id==56 | id==57 | id==60
gen time = (t>=2004) & !missing(t)
gen did = time*treatment
reg emp_gap1 time treatment did, r

1) should I group the countries for specific year? if so then how?
2) Planning to set the countries who implemented the law from 2013 to 2015 as controls and the others as a treatment group. Can I? if so then how?
pardon for mistakes as I am very new here..
Best
Nuzaba
I am writing my first thesis paper. I have a panel data of 140 developing countries for the year 1997-2015 and my main explanatory variable is implementation of paternity leave law which is dummies but not time invariant. My purpose is to see the impact of the law on gender employment gap.
Now my problem is I want use diff and diff method to graph and see if there is a parallel trend or not between the countries having paternity leave from 2004-2012 and 2013-2015. Here I need your suggestion too how can I set the model and work with the data?
At first I did run OLS to see the impact where I got highly significant results. Then ran fe and got insignificant result at the end.
xtreg emp_gap1 pat_law (control variables), fe cluster(id)
gen treatment = 1 if id==1 | id==2| id==4 | id==5 | id==6 | id==7 | id==8 | id==9 | id==14| id==16 | id==19 | id==20 | id==22 | id==24| id==25 | id==26 | id==28 | id==29 | id==31 | id==32 | id==33 | id==35 | id==38 | id==41 | id==43 | id==44| id==47 | id==49 | id==54 | id==55 | id==56 | id==57 | id==60
gen time = (t>=2004) & !missing(t)
gen did = time*treatment
reg emp_gap1 time treatment did, r
1) should I group the countries for specific year? if so then how?
2) Planning to set the countries who implemented the law from 2013 to 2015 as controls and the others as a treatment group. Can I? if so then how?
pardon for mistakes as I am very new here..
Best
Nuzaba
Comment