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/