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
Dummy variables for table values for percentileHey guys, I want to create one dummy variable which assigns a value of 1 for values above 90 percen…
Instrumental variables for Stata's -reg3- in 3SLS modelsHi, I am dealing with an econometric modeling issue which is new to me. While I have used 2SLS and …
forvalues with skipped valuesI have about 300 items for which I want to run the forvalues loop. However, I need to skip about 6 v…
create a variable for the second lowest valueI have a list of values (bids). I already have generated the minimum value via: Code: egen minbid…
Loop with spaces and quotesHello, I have a list of terms that have spaces and quotes that I want to loop over. I have been abl…
Subscribe to:
Post Comments (Atom)
0 Response to Reshape command
Post a Comment