Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: combine indicator values


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: combine indicator values
Date   Mon, 23 Nov 2009 09:25:51 +0100

<> 

So you want an indicator for the presence of any children? Then:


*************
gen byte anychild=child1 | child2 | child3 
*************

assuming that child* takes value "1" if the required number of children is
present.


HTH
Martin

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Nikolaos Pandis
Gesendet: Montag, 23. November 2009 09:13
An: [email protected]
Betreff: st: combine indicator values

Hi to all.

I have the following binary (0,1) variables:

child1, child2 child3

They indicate if the family has or not 1, 2, 3+ children respectively.

I would like to enter them in a logistic model using the xi commnad and
child1 as reference, after I combined them into 1 variable.

Any advise would be appreciated.

Many thanks,

Nick


      
*
*   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/


*
*   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