Statalist The Stata Listserver


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

RE: st: RE: RE: RE: summing across bins


From   "David Harrison" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: RE: RE: summing across bins
Date   Tue, 14 Feb 2006 11:57:55 -0000

One further suggestion for -binsm-...

If you add an option to pass additional options to -egen-, then weighted
means (and various other things) could be achieved by using a
user-written -egen- function (e.g. _GWTMEAN).

David

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: 14 February 2006 11:36
To: [email protected]
Subject: RE: st: RE: RE: RE: summing across bins

I've updated the program to Stata >=8 graphics, but the limitation to no
support of weights remains. This will appear via a future issue of the
Stata Journal. 

In essence -binsm- is a wrapper for -egen- as far as calculation of
summaries is concerned. 
As established in this thread, -egen-
does not support weights in general. I can't think of a work-around that
would not be ad hoc, awkward, and very time-consuming. 

Supporting -egen- may appear to be bad
programming style, as sometimes deprecated by myself among others. In
this case, it is a way of providing a lot of flexibility, including
support in principle for user-written functions, with minimal
programming effort. 

Nick
[email protected] 

Lenna Nepomnyaschy
 
> Hi Nick,
> 
> using the binsm command with weights would solve all my problems. It 
> would be so great if it were possible.  I just downloaded it yesterday

> and it works beautifully otherwise.
 
> On Mon, 13 Feb 2006, Nick Cox wrote:
> 
> > Also, on -binsm-: the latest public domain version is 1.1.0 for 
> > Stata 4 in STB-37.
> >
> > I didn't know anyone ever used it.
> > I will see if an update can be done quickly.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

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