Hi, I tried figuring this out with old posts but nothing so far has worked. I would like to get the bottom two colums into the single one beneath it. hhid is a string while hvidx is not. How do I do this? Do I first have to destring or is there an easy direct command?
Thanks for your help!
hhid hvidx
1 12 1
1 20 1
1 20 2
1 20 3
1 20 4
1 20 5
1 20 6
1 27 1
1 27 2
1 27 3
caseid
1 12 1
1 20 1
1 20 2
1 20 3
1 20 4
1 20 5
1 20 6
1 27 1
1 27 2
1 27 3
Related Posts with Combining Columns but not adding them
Keep if or Drop IfHello, I am trying to select a couple of cases in a dataset - and perform a set of operations/chang…
xtgls options in StataHi, Does someone know when should we use corr(ar1) or corr(psar1)? Any example from literature? I t…
Balance Table and RandomizationHi, I am working with data of a random experiment. How ever, in my case of study, in a moment I lose…
Survival DataDear all, I am trying to restructure/compress my dataset because it’s currently too big to do anythi…
VIF test of multi-collinearityDear list members, after running some -ivregress2 2sls- and -ivprobit- regressions, I am unsure whi…
Subscribe to:
Post Comments (Atom)
0 Response to Combining Columns but not adding them
Post a Comment