Hello,
I am trying to change the orientation of my data, but do not know an efficient way of going about it. I have data for the prices for a basket of different goods across 10 years and multiple states. The data is currently formatted as pictured below. I want to change it so there is a month variable and each of the price series is its own variable.
In other words, I would like my data to look like this
Year Month Price_Series1 Price_Series2 ........
What is the best way to go about this?
Thank you!
Christy
Related Posts with Reshaping data
import excelI want to import a data from an excel sheet and I want all the variables to be in the format as doub…
wald chi square and prob >chi square is .hello, I'm using ordered probit model, and the result the wald chi-square and prob >chi square is…
Need HelpHey Everybody, found this website trying to find Stata help online. I am currently enrolled in an an…
Counting observations after a certain event with two date variablesHi all, I have a database of projects that belong to a particular category and have a launch date a…
Error of "asdoc": option text() requiredHi All, I'm using asdoc to output stat results, it worked well with: Code: bys country: asdoc tabs…
Subscribe to:
Post Comments (Atom)
0 Response to Reshaping data
Post a Comment