Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: "cond" command


From   "Leonor Saravia" <[email protected]>
To   [email protected]
Subject   st: Re: "cond" command
Date   Thu, 11 Sep 2008 22:32:36 -0400

Eva,
I�d like to thank you for your help and your time. I did what you told
me and it was perfect!

Thanks again :)

Leonor


2008/9/11 Leonor Saravia <[email protected]>:
> Hello Statalisters,
>
> I'm trying to tabulate some information, but I�m having problems doing
> it, so I�d appreciate if you could see it and tell me what's what I�m
> doing wrong.
>
> What I did, was:
>
> gen col = cond(pension == 1,               ///
>               cond(jub == 1, 1, 2))
>
> label define col  1 "pension, jub"               ///
>                        2 "pension, Sobrevivencia"     ///
>
> label value col col
>
> Where the variables have this information: pension = (0,1, 2)
>                                                             jub = (0,1)
>
>
> Thank you very much!!
>
> Leonor
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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