Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Scatter plot help.
From
Nick Sanders <[email protected]>
To
[email protected]
Subject
Re: st: Scatter plot help.
Date
Sun, 2 Jan 2011 22:36:48 -0800
Richard,
I believe what you want is:
twoway scatter Home Auto if Married == 1 [w = Income], mcolor(red) || scatter Home Auto if Married == 2 [w = Income], mcolor(green)
For finer details, I suggest the Stata command "help twoway scatter" (for the nitty gritty) and "A Visual Guide To Stata Graphics" (for just about everything Stata graph-y).
--
Nicholas J. Sanders, Ph.D.
Postdoctoral Fellow
Stanford Institute for Economic Policy Research
366 Galvez St, Room 228
Stanford, CA 94305
On Jan 2, 2011, at 10:23 PM, Richard C. Feiock wrote:
> Dear all,
>
> I am a relatively new user of Stata and wondering how to make a
> scatter plot in the following situation:
>
> Y variable is called “Home”
> X1 variable is called “Auto”
> X2 (dichotomous) variable is called “Married”
> X3 (continuous) variable is called “Income”
>
> Scatter plot of Y and X1 with dichotomous X2 (if X2=1 married, the
> red-colored marker, if X2=0 non-married, the green marker) and with
> continuous X3 (the size of marker is proportional to the value of X3)
>
> Many thank in advance.
>
> Richard
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/