Try superimposing the graphs:
scatter price mpg [w=rep78], msymbol(Oh) || ///
scatter price mpg [w=rep78], ms(none) mlabel(foreign)
Nick
[email protected]
Steve Lin
> I would like to display a scatter plot in which (1) the markers are
> labeled with observation identifiers and (2) the size of each
> marker is
> scaled according to its weight in a weighted least squares regression.
>
> I can display the plot with either option alone, but for some reason,
> when I try to use both simultaneously, the marker labels are displayed
> properly, but the markers are no longer scaled.
>
> Here's a simple program that illustrates the problem, using the Stata
> user manual auto dataset:
>
> clear all
> use http://www.stata-press.com/data/r8/auto.dta
> collapse (mean) price mpg (count) rep78, by(foreign)
> describe
> scatter price mpg [w=rep78], mlabel(foreign)
> scatter price mpg [w=rep78], msymbol(Oh)
> scatter price mpg [w=rep78], msymbol(Oh) mlabel(foreign)
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/