Dear all,
here is a screenshot of my data. My dataset includes GDP for all 50 states over a period of three years: 2016, 2017, and 2018. But as you can see the years are not sorted. I would like to start with the GDP for the year 2018 for all 50 states stacked on top of the GDP for the year 2017 for all 50 states and then 2016? Is it possible to to sort by year and by state in alphabetical order?
Array
Thank you in advance for your help
Jason Browen
Related Posts with Help Sorting Data by State and year
Modulo, Mathematics, and Stata NotationFor a simulation, there's an equation that (in part) takes the form of 0.3.(t mod(T + 1))−(t mod(10…
Summing a variable based on the values of other categorical variablesHi there, I am learning STATA and currently having the following situation: I want to sum a binary …
Extreme Bounds AnalysisHi, I want to do Extreme bound analysis (EBA) suggested by Sala-i-Martin (1997). I have checked help…
Query on Effect modification, lincom, and interaction termDear colleagues, I would like to ask you questions because I have come across a task that I do not …
Justification of Label in LegendHow can I justify (e.g., center, left, right) the labels in a legend of a graph (e.g., line, scatter…
Subscribe to:
Post Comments (Atom)
0 Response to Help Sorting Data by State and year
Post a Comment