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

st: AW: combine indicator values

From   "Martin Weiss" <>
To   <>
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


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Nikolaos Pandis
Gesendet: Montag, 23. November 2009 09:13
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,


*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2023 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index