Statalist


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

st: Re: "cond" command


From   "Leonor Saravia" <lmisaravia@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: "cond" command
Date   Thu, 11 Sep 2008 22:32:36 -0400

Eva,
Id 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 <lmisaravia@gmail.com>:
> Hello Statalisters,
>
> I'm trying to tabulate some information, but Im having problems doing
> it, so Id appreciate if you could see it and tell me what's what Im
> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index