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

Re: st: combine indicator values

From   Maarten buis <>
Subject   Re: st: combine indicator values
Date   Mon, 23 Nov 2009 09:56:35 +0000 (GMT)

--- On Mon, 23/11/09, Nikolaos Pandis wrote:
> 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.

-xi- is fine as a convenience command, but the convenience is
that you don't have to create the binary variables. In this
case you already have the binary variables, and -xi- is actually
an "inconvenience command". I would just forget about -xi- and 
add the variables child2 and child3 to your logistic model, this 
will do exactly what -xi- would otherwise do.

Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen


*   For searches and help try:

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