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
Check if a group of variables exists before running a series of commandsHi I have other two questions for you all. I have a number of datasets (about 250) and I want to cr…
Overlaying a line graph over a catplot or tabplot graphDear Statalisters, First time statalist user here. I am studying the supply and demand of fishing p…
Appending datasets by keeping the common variabels onlyHi, I want to append datasets for various countries, each of which contains variables that others do…
Replace missing values by system-missing '.' if label value is "Manquant"Hello, I have a survey where most variables have a different code for missing values, I need to uni…
ARDL short run and long run InterpretationHi everyone, This is the first time I use Stata for my paper so I am confused a lot. I’m doing my re…
Subscribe to:
Post Comments (Atom)
0 Response to Reshaping data
Post a Comment