[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Cannot simultaneously use weight and marker label options in scatter plot?
Dear Stata users,
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:
collapse (mean) price mpg (count) rep78, by(foreign)
scatter price mpg [w=rep78], mlabel(foreign)
scatter price mpg [w=rep78], msymbol(Oh)
scatter price mpg [w=rep78], msymbol(Oh) mlabel(foreign)
Any suggestions? Thanks a lot!
* For searches and help try: