[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: coding a categorical variable to a % continuous variable
> 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 ?
You can achieve what you want with _two_ x-variables, but not one, if you
. graph twoway scatter x1 x2, by(smokers)
CLIVE NICHOLAS |t: 0(044)191 222 5969
Politics |e: firstname.lastname@example.org
Newcastle University |http://www.ncl.ac.uk/geps
* For searches and help try: