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