From | baum <[email protected]> |
To | [email protected] |
Subject | st: Re: dummies from continuous variable |
Date | Thu, 15 Aug 2002 08:46:09 -0400 |
--On Thursday, August 15, 2002 2:33 -0400 Deborah wrote:
A thread earlier this week spoke about doing this from the percentiles of the continuous variable (pctile, xtile, _pctile). But if you have arbitrary values where you want to bracket the c.v., these two commands will do it:In STATA, however, the only way I know to create the same variable is to = use gen: gen age2534 =3D (age>=3D25 & age < 35) Question: Is there a better way to generate indicator variables from = continuous ones?
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |