This video demonstrates how to reshape data from wide format to long format in Stata using the reshape command. www.stata.com Copyright 2011-2019 StataCorp LLC. All rights reserved.
Пікірлер: 22
@faridlabib42732 жыл бұрын
I had been ;literally copying, pasting, and transposing for 2 days on excel and then you showed me how to do it in 5 min. Words cannot describe...
@icanmakeitsnow6 жыл бұрын
You are amazing, nice clear calm tones.
@Dr_Shiny4 жыл бұрын
For all those who are facing issues with Quarterly Panel data............. 1- Create ID variables for each i 2- for quarters use 1,2,3,4,5...... instead of 2010q1, 2010q2, 2010q3..... Stata will give the error "so many missing values" 3- then run the above code 4- After reshape, just convert the 1,2,3,4,5..... Year variables into quarters, simple ... Thanks
@JaKeineAhnungHalt097 жыл бұрын
That's a fantastic video that solved exactly the problem that I have had! Many thanks for the effort you put into making it :)
@arthaschen47014 ай бұрын
Thank you! That’d save me from asking my advisor tomorrow before data meeting
@AR-gc7dr4 жыл бұрын
This is helpful. But what if you have a lot of variables for each year? do you name each one or is there an easier way
@thelonelycrowd4 жыл бұрын
Thanks a lot. your videos help my first analysis using Stata.
@GuyMontag834 жыл бұрын
You saved my day. Thanks!
@pavlinaziso12863 жыл бұрын
Many thanks :) super helpful
@JoanaRodrigues-gw5ok5 ай бұрын
OMG! THANK YOU!
@nori6869 Жыл бұрын
Thank you!
@lutfaferdous82364 жыл бұрын
Thanks a lot for your help
@luistato74373 жыл бұрын
Amazing
@paulpv73 жыл бұрын
Thank you sir
@nillamanjilla53192 жыл бұрын
Legend!
@christinaharrington14486 жыл бұрын
This is great in as far as it goes. But what about if you have irregular input - for example if one id has 7 data points per year and one id has 2, and none the next year. Can this conversion still happen?
@cesarporsche6 ай бұрын
Is that you Nick?
@audrea20233 жыл бұрын
OH MY GOD!!! THAAAAANK YOU!!!
@TheDrewpdog5 жыл бұрын
this was extremely useful.
@lovenepal8756Ай бұрын
What if my variable is monthly what to do?
@willyschuettelbier90707 жыл бұрын
Forget it! Stata data managment is hoplessly cumbersome! Consider that time series data you get from online databases will typically be ranked by a number representing a year. Stata is not able to interprete such a year number as a name. So you have to add somehow a letter to every year number... and so on... You will always end up doing all the necessary data preparations for stata by hand using a programm like excel. Given the technological capacity of computers that's quite ridiculous...