From | Roger Newson <[email protected]> |
To | [email protected] |
Subject | Re: st: coding a categorical variable to a % continuous variable |
Date | Sun, 13 Jun 2004 12:12:02 +0100 |
At 01:56 12/06/2004, Suzy wrote:
Hello,You don't say what version of Stata you are using. However, if it is Stata 8, then you can use either -xcollapse- or -xcontract- (downloadable from SSC).
I have a dichotomous variable (0=no ; 1=yes) that I would like to use in a scatter plot on the y axis as a continuous variable as a % variable.
For example: the x axis could be age and the y axis could be % smokers.
Can anyone help with this ?
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |