Hello StataList-ers!
Help! I need somebody! I am trying to replicate the following figure.

What I am doing is simply a difference-in-difference in multiple treatment groups and multiple time periods. This figure depicts the effect of ENDAs (employment nondiscrimination acts) on innovation. Several U.S. states adopted the ENDAs in different years during the sample period. I am trying to examine the before-after effect of the legal change in affected states (treatment group) compared to the before-after effect in nonaffected states. On the y-axis: “LnPat” (ln of patent counts) and “LnCit” (ln of patent citations); the x axis shows the time relative to the adoption of the laws, ranging from 5 years prior to the adoption year (year 0) until 10 years afterwards. “Pass” is a dummy=1 if the ENDA is in place in state s in a given year, and 0 otherwise. I also have dummy variables “Year minus 5”, “Year minus 4” … “Year 0”, etc. I literally have no idea how to code it. Please, help! I’ve been reading the help files on graphs … it’s still a total mess in my mind.
Thanks heaps!
Vania
Help! I need somebody! I am trying to replicate the following figure.
What I am doing is simply a difference-in-difference in multiple treatment groups and multiple time periods. This figure depicts the effect of ENDAs (employment nondiscrimination acts) on innovation. Several U.S. states adopted the ENDAs in different years during the sample period. I am trying to examine the before-after effect of the legal change in affected states (treatment group) compared to the before-after effect in nonaffected states. On the y-axis: “LnPat” (ln of patent counts) and “LnCit” (ln of patent citations); the x axis shows the time relative to the adoption of the laws, ranging from 5 years prior to the adoption year (year 0) until 10 years afterwards. “Pass” is a dummy=1 if the ENDA is in place in state s in a given year, and 0 otherwise. I also have dummy variables “Year minus 5”, “Year minus 4” … “Year 0”, etc. I literally have no idea how to code it. Please, help! I’ve been reading the help files on graphs … it’s still a total mess in my mind.
Thanks heaps!
Vania
Comment