Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: survival analysis


From   Johannes Schoder <johannes.schoder@soi.uzh.ch>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: survival analysis
Date   Wed, 02 Sep 2009 15:58:28 -0400

Hi Marten:

Thanks for your help. However, when I am using your command Stata complains that "weights must be stset".
Therefore I used:
stset time_in_months [weight=freq], failure(vital)

This works out. However I can't use aweight Stata automatically uses fweight, if you should know how to actually tell Stata to use aweights I would be very happy for any hints.

Thanks,
Johannes

Maarten buis schrieb:
--- On Wed, 2/9/09, Johannes Schoder wrote:
I should estimate a parametric survival model (I am using
the streg command). However, I since I am using grouped data
I have to weight my estimates. Does anyone knows how a
weighted least squares regression works with streg?

streg indepvars [fweight=weightvar], dist(distributionname)

See -help weights-
Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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