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
How to add star to show the significance of standard error in regression matrix outputHi, Statalists, I have got a question on adding star after coefficient in the matrix output of a re…
Integrated Calibration Index (ICI)Dear colleagues, I there a way to calculate the "Integrated Calibration Index (ICI)" in STATA after…
error in copying table from stata to excelArray ----------------------- copy starting from the next line ----------------------- Code: * Exam…
How to add star to show the statistical significance of coefficient in regression matrix outputHi, Statalists, I have got a question on adding star after coefficient in the matrix output of a re…
time-dummy increases R-squaredHi, I am currently working with a pseudo-panel and to counter autocorrelation i am using a year-dum…
Subscribe to:
Post Comments (Atom)
0 Response to Reshaping data
Post a Comment