Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Scatterplot smoothing for aggregate data


From   "Jann, Ben" <[email protected]>
To   <[email protected]>
Subject   st: Scatterplot smoothing for aggregate data
Date   Tue, 2 Nov 2004 16:38:54 +0100

Hi,

I am working with scatterplots displaying the mean values of a
continuous dependent (y; income, for instance) for the different
levels of a discrete independent (x; years of education). The sizes
of the symbols in the plot are proportional to the group sizes, i.e.
to the numbers of observations, which have been used to calculate the
means of y. 

I now would like to add a Lowess curve (or something alike) to the 
plot to illustrate the functional form of the relationship between
the two variables. 

I think that the the data points should be weighted according to
their group size. However, the -lowess- command does not allow
weights. Does anyone know a workaround (without having to use the
the individual level data)?

Thanks a lot for any help,

ben

*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index