Statalist


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

st: "cond" command


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

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