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

Re: st: joining variables


From   Laurel Copeland <[email protected]>
To   [email protected]
Subject   Re: st: joining variables
Date   Wed, 19 Feb 2003 16:15:15 -0500 (EST)

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/



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