I am working with survey data. Respondents are given the option to respond in different units for some questions. For example, take weight: respondents may choose to either respond in kgs, or lbs. Thus, I have two separate variables that measure the same concept (i.e. variable 1 is weight_kgs, and variable 2 is weight_lbs), but each unique ID will have an observation either recorded in kgs, or in lbs.
After converting the observations to the same unit (i.e. both will be in kgs), I would like to create one variable that contains both the observations originally recorded as kgs (weight_kgs), as well as those just converted from lbs.
I tried to merge the variables, but that did not work. Any way to do this on Stata?
Related Posts with Merging observations into one variable
Generate random numbers with specific mean and standard deviation within a rangeHello, I am using STATA 14 and would like to generate some random numbers that have a specific mean …
Using data from multiple files (Excel)Hi everyone, I'm still taking my first steps in Stata. Still, I have quite a lot of data (simulated…
All characters of a variable are not displayed when I import the excel data. only 1st 27 characters are shown. Please HELP!For example "AgeofPersonAnsweringtheQuest" , only AgeofPersonAnsweringtheQues is displayed when I im…
2020 Swiss Stata Conference takes place virtuallyDue to the development of the situation, the Swiss Stata Conference on November 19 will take place v…
Difference-in-difference with categorical outcome variableHi everyone, I want to use the Diff command in Stata to run a propensity score matching diff-in-dif…
Subscribe to:
Post Comments (Atom)
0 Response to Merging observations into one variable
Post a Comment