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/