Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: RE: Fitting distributions to right-sensored survival data


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: RE: Fitting distributions to right-sensored survival data
Date   Fri, 22 Nov 2013 14:08:14 +0100

On Fri, Nov 22, 2013 at 1:44 PM, Kabaso M.E. wrote:
> Essentially, I can use the streg for example to fit a Weibull model to my survival data but how can I get the model's parameters for me to recreate the pdf here fitted elsewhere?

The (transformed) parameters are returned in the matrix e(b). You can
also use the -[]_b[]- syntax to get at specific parameters, see: -help
_variables-. Here is an example:

*------------------ begin example ------------------
sysuse cancer
streg i.drug age, dist(weibull) nohr
matlist e(b)
di "p = "     exp([ln_p]_b[_cons])
di "1/p = " 1/exp([ln_p]_b[_cons])
*------------------- end example -------------------
* (For more on examples I sent to the Statalist see:
* http://www.maartenbuis.nl/example_faq )

Hope this helps,
Maarten

---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index