Statalist The Stata Listserver


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

Re: st: RE: summing across bins


From   Lenna Nepomnyaschy <[email protected]>
To   [email protected]
Subject   Re: st: RE: summing across bins
Date   Mon, 13 Feb 2006 13:41:44 -0500 (EST)

HI Scott,

This is so so helpful. Have been looking for this for years.
thanks,
Lenna

On Mon, 13 Feb 2006, Scott Merryman wrote:

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


Lenna Nepomnyaschy
Post-Doctoral Fellow
Columbia University School of Social Work
1255 Amsterdam Ave, room 718
New York, NY 10027
Phone: (212) 851-2379
Fax: (212) 851-2377
*
*   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