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

Re: st: RE: Why can't I egen means with pweights?


From   Laura Schechter <schechte@are.Berkeley.EDU>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Why can't I egen means with pweights?
Date   Wed, 23 Apr 2003 18:29:15 -0700 (PDT)

Oops, 
  I take back my comment on the pweights. Nick Winter's code only works if
there are no missing observations in the variable you are calculating the
weighted mean for. If there are, you must specifically command "if
varname~=.
   Laura

On Thu, 24 Apr 2003, n j cox wrote:

> Laura Schechter wrote:
> 
> > I tried it out and Nick Winter's code works very well, and it seems as if
> > it is faster in my bootstrap than the whole svymean thing was. 
> 
> My question on pweights remains.
> 
> > I don't
> > know anything about SSC though or how that compares.
> 
> SSC is not code but one source of user-written code. It is documented in 
> various places, including
> 
> 1. There is an explanation in the Statalist FAQ, URL below.
> 
> 2. There is another explanation in the findit FAQ, URL below.
> 
> 3. In Stata 8 and updated Stata 7, -help ssc- tells you
> about an official Stata command -ssc- helping
> you to access SSC. This is documented in the Stata 8
> manuals at [R] ssc.
> 
> 
> 
> 
> 
> 
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index