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
Calculating the expected return of Eurostoxx 50 with STATA (Event Study)Hello everyone, currently I am working on an event study with the Eurostoxx 50 Index as underlying m…
Excluding leading zeros when exporting output to WORDHi folks, can you recommend a command that could help me export regression output without including …
color/line pattern for graph?Dear All, I found the following code Code: sysuse auto, clear regress price c.length##c.mpg est s…
How can I get return list of estat endogenous after a 2sls?Hello,everyone.I want to define results of extat endogenous to be a local.But I find that I can't ge…
Can I run a Pseudo-Poisson Maximum Likelihood in panel data when not using a Gravity Model? What is the STATA command?I want to run the Pseudo-Poisson Maximum Likelihood (PPML) in a panel data framework as my dependent…
Subscribe to:
Post Comments (Atom)
0 Response to Merging observations into one variable
Post a Comment