Statalist


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

st: "cond" command


From   "Leonor Saravia" <[email protected]>
To   [email protected]
Subject   st: "cond" command
Date   Thu, 11 Sep 2008 09:51:00 -0400

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