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   Ricardo Ovaldia <[email protected]>
To   [email protected]
Subject   Re: st: RE: stcurve does not allow pweights?
Date   Sun, 5 Dec 2004 08:06:55 -0800 (PST)

> 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

Regards,
Ricardo.

=====
Ricardo Ovaldia, MS
Statistician 
Oklahoma City, OK

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   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