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
Non-normal distribution of latent variable in structural equations modelling - transformation?I have a simple path model with several latent variables that are ostensibly well enough indicated b…
Tobit with vce(robust) or notHi, When I run tobit model specifying vce(robust), it does F test to test the hypothesis that the co…
Constrained optimization in StataDear Stata uses, I am having a constant optimization problem to solve in Stata I am having three var…
Time DummiesHello! Quick question regarding time dummies. I have data from 4 quarters of the Labour Force Surv…
Effective Reproductive NumberHello! Is there a way to calculate Effective Reproductive Number (Rt) in STATA? Thank you very muc…
Subscribe to:
Post Comments (Atom)
0 Response to Merging observations into one variable
Post a Comment