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]
SV: st: scatter plot weighted plots
From
Malin Lundberg Rasmussen <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
SV: st: scatter plot weighted plots
Date
Wed, 25 Apr 2012 14:16:45 +0200
Exactly Nick Cox!!!
Thank you!
-----Oprindelig meddelelse-----
Fra: [email protected] [mailto:[email protected]] På vegne af Nick Cox
Sendt: 25. april 2012 14:11
Til: [email protected]
Emne: Re: st: scatter plot weighted plots
At a guess you want
egen freq = total(1), by(dr1995 mat blind)
egen tag = tag(dr1995 mat blind)
scatter dr1995 mat if blind == 1 & tag [fw=freq] || ////
scatter dr1995 mat if blind == 2 & tag [fw=freq] ||
On Wed, Apr 25, 2012 at 1:04 PM, Malin Lundberg Rasmussen
<[email protected]> wrote:
> I have a problem;
> I am making a scatter plot of two variables, divided by two groups.
> I am using the following command:
>
> twoway (scatter dr1995 mat if blind==1 , m(Oh)) ///
> (scatter dr1995 mat if blind==2, m(Oh))
>
> My problem is that I get the same size of circle for each point (and where both groups is represented I only get one color). I would like the dot to represent the number of patients (in both groups), so that if ten people represent circle number 1, this would be bigger than another circle representing only two patients.
> I tried the [fw=?], but don't know what to put instead of "?".
>
*
* 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/