Dear community,
My original data are in long shape. When I reshape long to wide there is an increase in the number of observations. When I reshape back to long, these extra observations created remain in the long shape. Any clues to deal with this?
id variable: rc_pid
time variable: wave
Code:
reshape wide varlist , i(rc_pid) j(wave)
Related Posts with Increase in the number of observations after using RESHAPE command
How to create a progress bar for loopsHi there, I have been looking online for ways to create a progress bar that shows the completion of…
How to calculate a margins plot for a DiD model when faced with colinearity issues? Code: * Example generated by -dataex-. For more info, type help dataex clear input long group int …
coefplot only shows several variable names in horizontal axisHi, I am using coefplot to draw the graph for the parallel trend test. I have 30 days before the ev…
Splitting episodes & mergingHey Stata Community, I need to split every job episode according to calendar years (rrdat dataset; …
Display the entire variable's names in "tab"Dear Profs and colleagues, There is an eduction variable, and its names are pretty long, in tab I n…
Subscribe to:
Post Comments (Atom)
0 Response to Increase in the number of observations after using RESHAPE command
Post a Comment