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
Changing yes/no observations into 1/0I have a list of variables that contain answers Yes and No, I am trying to replace them with 1 and 0…
Returns of different companiesHello, I am new in Stata. I have stock price data of many companies. I would like to get the return…
How to create a variable for the nth observation using datesHello! I have a long dataset with dates corresponding to visits (variable name "date"). Each person…
using foreeach loop for doing repeating worki want to save observations in different files on the basis of values of variable order. i have lots…
confirm numeric format returns error code 111I'm wanting to use confirm numeric format to check that a user-entered format is valid, but when the…
Subscribe to:
Post Comments (Atom)
0 Response to Help Sorting Data by State and year
Post a Comment