Hello everybody
I'd like to reshape my data from wide to long format but as the name of my variables are
userid f9001 f9002 f90003 f320001 f320002 f320003 f360001 f360002 f9001_co f9002_co f90003_co f320001_co etc. age gender etc.
I thought it might be done with foreach and local but with those variable names I don't know how to handle it.
Can anybody help?
Thanks in advance
Related Posts with Reshape command
Calculating residuals in a multinomial regression as part of 2SRII am attempting to do a 2 stage residual inclusion (2SRI) model where the first stage is estimating …
Randomly Assigning TreatmentI have person-year level data, and I am utilizing DiD that exploits state-level shocks. Each person …
Problems with local macros in finding an excel fileHello Statalisters, I've being working all day in a code and i couldn't make it work. Because i'm re…
Creating loop to convert SPSS to CSVHi everyone, new user here. I have some basic skill in Stata but am trying to become more advanced. …
reshapeHi everyone, I have a long dataset and used this code to reshape it to wide format: Code: ds hhidpn…
Subscribe to:
Post Comments (Atom)
0 Response to Reshape command
Post a Comment