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

RE: st: RE: stcurve does not allow pweights?


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: stcurve does not allow pweights?
Date   Sun, 5 Dec 2004 16:32:50 -0000

Thanks for the important correction. I was wrong, 
through looking only at the help and at the 
start of the code for -stcurve-. 

Nick 
[email protected] 

Ricardo Ovaldia
 
> > Monica L. Parra Torrado asked:
> >  
> > > Can anyone confirm to me if stcurve does not allow
> > pweights?  
> 
> and Nick Cox <[email protected]> wrote:
> 
> > Correct. -stcurve- does not allow pweights. If 
> > weights are not stated to be allowed, they 
> > are not allowed. 
> > 
> 
> Actually that is not correct. When using the -st-
> commands, weights are specified at the time the data
> is -stset-. If Monica specifies [pw=] when she stsets
> her data, then all subsequent -st- commands will use
> pweights. Here is a simple example:
> 
> . sysuse auto, clear
> . stset  mpg [pw= gear_ratio], fail( foreign)
> . streg  price, dist(weib)
> . stcurve, at1(price=6000) surv
> 

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