Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: summing across bins


From   Lenna Nepomnyaschy <[email protected]>
To   [email protected]
Subject   st: summing across bins
Date   Mon, 13 Feb 2006 08:30:50 -0500 (EST)

Hi,

I just downloaded the ado file binsm, which allows you to graph mean values (or other values) of yvar on bins of xvar. But, I need to use weights. Does anyone have another way to do this that allow weights? the binsm command does not.

Alternatively, does anyone know how to create a variable with weighted means across various groups. the command

egen newvar=mean(oldvar), by(group)
does not allow weights.

Thank you very much for your help,
Lenna Nepomnyaschy

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