Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Graph for parallel trend assumption

    Hello Stata users,

    I have a panel data with three waves collected during 2011, 2013, and 2015. I want to evaluate a policy reform made in 2013. My outcome variable is income in USD and the variable of interest is the interaction of gender and post reform period. Gender comprises 1=male and 0=female. The reform period=1 if year >=2013 and 0 otherwise. I want to test the parallel trend assumption using a graph. How could I implement it in Stata? Appreciating your support, here comes some information about my data.

    [CODE][CODE] gen post2013=year>=2013
    [CODE] global controls1 rural age lnrhhcpaes lnrhhc_sqrd primary secondary certificates tertiary

    Code:
     xi: xtreg income  i.gender*i.post2013 $controls1 i.year i.Kebele if sample_eligible==1, fe cluster (individual_id) 
    
     
    
    Code:
     dataex individual_id year gender post2013
    ----------------------- copy starting from the next line -----------------------
    Code:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input str16 individual_id double year byte gender
    "0101010160100201" 2011 0
    "0101010160100201" 2013 0
    "0101010160100201" 2015 0
    "0101010160100202" 2011 1
    "0101010160100202" 2013 1
    "0101010160100202" 2015 .
    "0101010160100203" 2011 0
    "0101010160100203" 2013 0
    "0101010160100203" 2015 .
    "0101010160100204" 2011 1
    "0101010160100204" 2013 .
    "0101010160100204" 2015 .
    "0101010160100205" 2011 1
    "0101010160100205" 2013 1
    "0101010160100205" 2015 .
    "0101010160100206" 2011 0
    "0101010160100206" 2013 0
    "0101010160100206" 2015 .
    "0101010160100207" 2011 1
    "0101010160100207" 2013 1
    "0101010160100207" 2015 .
    "0101010160100208" 2011 0
    "0101010160100208" 2013 0
    "0101010160100208" 2015 .
    "0101010160101701" 2011 1
    "0101010160101701" 2013 1
    "0101010160101701" 2015 1
    "0101010160101702" 2011 0
    "0101010160101702" 2013 0
    "0101010160101702" 2015 0
    "0101010160101703" 2011 1
    "0101010160101703" 2013 1
    "0101010160101703" 2015 1
    "0101010160101704" 2011 1
    "0101010160101704" 2013 1
    "0101010160101704" 2015 1
    "0101010160101705" 2011 0
    "0101010160101705" 2013 0
    "0101010160101705" 2015 0
    "0101010160101706" 2011 0
    "0101010160101706" 2013 0
    "0101010160101706" 2015 1
    "0101010160101707" 2011 1
    "0101010160101707" 2013 1
    "0101010160101707" 2015 0
    "0101010160103401" 2011 0
    "0101010160103401" 2013 0
    "0101010160103401" 2015 0
    "0101010160104901" 2011 0
    "0101010160104901" 2013 0
    "0101010160104901" 2015 0
    "0101010160104902" 2011 0
    "0101010160104902" 2013 0
    "0101010160104902" 2015 .
    "0101010160104903" 2011 0
    "0101010160104903" 2013 0
    "0101010160104903" 2015 0
    "0101010160104904" 2011 0
    "0101010160104904" 2013 0
    "0101010160104904" 2015 0
    "0101010160106401" 2011 1
    "0101010160106401" 2013 1
    "0101010160106401" 2015 1
    "0101010160106402" 2011 0
    "0101010160106402" 2013 0
    "0101010160106402" 2015 0
    "0101010160106403" 2011 0
    "0101010160106403" 2013 0
    "0101010160106403" 2015 .
    "0101010160106404" 2011 0
    "0101010160106404" 2013 0
    "0101010160106404" 2015 .
    "0101010160108001" 2011 0
    "0101010160108001" 2013 0
    "0101010160108001" 2015 0
    "0101010160108002" 2011 1
    "0101010160108002" 2013 1
    "0101010160108002" 2015 1
    "0101010160108003" 2011 0
    "0101010160108003" 2013 0
    "0101010160108003" 2015 0
    "0101010160108004" 2011 0
    "0101010160108004" 2013 1
    "0101010160108004" 2015 0
    "0101010160108701" 2011 1
    "0101010160108701" 2013 1
    "0101010160108701" 2015 1
    "0101010160108702" 2011 0
    "0101010160108702" 2013 0
    "0101010160108702" 2015 0
    "0101010160108703" 2011 0
    "0101010160108703" 2013 0
    "0101010160108703" 2015 .
    "0101010160108704" 2011 0
    "0101010160108704" 2013 0
    "0101010160108704" 2015 0
    "0101010160108705" 2011 1
    "0101010160108705" 2013 1
    "0101010160108705" 2015 1
    "0101010160110101" 2011 1
    end
    label values sex sex
    label def sex 0 "female", modify
    label def sex 1 "male", modify
Working...
X