Hello, I am lost and could need some help!
I have one variable, lets call it X, which includes living situation (alone, with one other person, with 2, with 3, etc) but this variable only exists in datasets 2000 and 2001. Then I have variable Y, which is the exact same thing, but in data sets 2002, 2003, 2005, 2006, 2008, and 2010. I have already appended all data sets into one. How do I merge variable X and Y to create one variable? ( I am looking for the coding I can write into STATA pls!)
Thank you!
Related Posts with Merging Two Variables
Change in variable over two periodsHi, I would like to investigate the impact of an event (COVID-19) on a variable by measuring the ch…
dtalink for probabilistic matchingHello: I tried to add this conversation in an old post, but haven't been able to see much regarding …
Conditional execution of a code line on if clauseHey there, Iam still newish to Stata and want to code it like other languages. So my todays project…
Univariate ordinal regression when proportional odds assumption failsHello, there! I'm doing a regression on an ordinal variable, mmRS (3 months modified rankin scale, …
-aweight- if only dependent variable represents an average/medianHi everyone, my data contains information of approx. 500 firms over a 7-year-period (quarterly obse…
Subscribe to:
Post Comments (Atom)
0 Response to Merging Two Variables
Post a Comment