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
Omitted coefficients using reghdfeHello, I am estimating regressions that include different fixed effects and variables whose coeffic…
Spatial model (xsmle) with spatial DV and IV lags and spatial errors?Is there a way to estimate a model with (1) a spatially lagged dependent variable, (2) spatially lag…
Sample Selection Issue: Pooled Cross Sectional DataHi All, I am using micro level dependent and country level independent variable. Just for example, …
Bootstrap with xtabond2Hello everyone, I am a beginner researcher. Now, I try my data with xtabond2 command. I see almost e…
[putdocx] Using if command to remove blank lineHello, I am making a lot of news report with putdocx command in Stata. I will collect various news …
Subscribe to:
Post Comments (Atom)
0 Response to Help Sorting Data by State and year
Post a Comment