Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

AW: st: joining variables


From   "Sophie Barthel" <sophie@stats.ucl.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   AW: st: joining variables
Date   Wed, 19 Feb 2003 21:55:59 -0000

Thank you to everyone who replied. Your answers were very helpful, in
the end I used an approach similar to the one below

Sophie 

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Laurel
Copeland
Gesendet: 19 February 2003 21:15
An: statalist@hsphsun2.harvard.edu
Betreff: Re: st: joining variables

gen either=to10la
replace either=to10ra if to10la==.

On Wed, 19 Feb 2003, Sophie Barthel wrote:

>
> Dear List
>
> I have got the following problem:
>
> >From a set of observations I have created a variable to10la for
people
> whose left eye was measured and a variable to10ra for people whose
right
> eye was measured. Whenever a person appears in the data whose right
eye
> was measured to10la displays a missing value and vice versa. All of
> these are meant to be merged into one variable, however I do not seem
to
> be able to find out how to do this.
>
> Thank you
>
> Sophie
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index