[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: coding a categorical variable to a % continuous variable
I assume you have data like this:
You can get your graph by collapsing the data over age.
. collapse smoker, by(age)
. replace smoker = 100*smoker
. scatter smoker age
--- Suzy <firstname.lastname@example.org> wrote:
> 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 %
> For example: the x axis could be age and the y axis could be %
> Can anyone help with this ?
> Thank you.
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
* For searches and help try: