I am attempting DID with having states from one year 1991 being compared to states from 1992 and so forth with the difference being the occurrence of a mass shooting with a possible difference appearing in the numberoflaws. I would like to capture the difference that occurs between states from one year to another and perhaps as a whole. The multiple same years keep giving me a error as well.
state string
year int
shooting byte
numberoflaws int
state year shooting numberoflaws
Alabama 1991 0 3
Alaska 1991 1 5
....
Alabama 1992 0 9
Alaska 1992 2 1
....
Alabama 1993 0 7
Alaska 1993 3 4
....
Related Posts with DiD multiple same years across states
Creating distinguishable lines for folks who are colorblind when using graph twoway line Hi everyone. I would love to know how to create different lines by pattern. Below is my dataset. …
Mediation using Fixed Effects Negative Binomial RegressionHi all, I am conducting an analysis that is trying to perform a mediation analysis using fixed effe…
How to construct children data based on their parents' data?Hi all, I have a household dataset in which respondents' data are in a long layout but their childr…
Converting SEM (or GSEM) syntax into a diagramDear all, I am running a syntax for path analysis and CFA using gsem in Stata 15.1, I can't find how…
Error 9901 in Excel export_xlshwritestr(): 9901 Stata returned error export_excel_write_file(): - function returned error expo…
Subscribe to:
Post Comments (Atom)
0 Response to DiD multiple same years across states
Post a Comment