Statalist The Stata Listserver


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

st: RE: summing across bins


From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   st: RE: summing across bins
Date   Mon, 13 Feb 2006 08:34:05 -0600

-findit weighted mean- brings up David Kantor's

TITLE
      '_GWTMEAN': module containing extensions to generate to implement
weighted mean


Scott

> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Lenna Nepomnyaschy
> Sent: Monday, February 13, 2006 7:31 AM
> To: [email protected]
> Subject: st: summing across bins
> 
> 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/


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