Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: graph piecewise constant baseline hazard


From   "Chiara Mussida" <cmussida@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: graph piecewise constant baseline hazard
Date   Mon, 17 Mar 2008 18:06:41 +0100

Thanks for this Marteen,
but it is a little confusing: my model is a piecewise constant,
estimated with the commsnad stpiece, but the example below shows a
streg ans stsplit...
and I have no access to the book below.
sorry for bothering again,
regards,
chiara

On 17/03/2008, Maarten buis <maartenbuis@yahoo.co.uk> wrote:
> --- Chiara Mussida <cmussida@gmail.com> wrote:
> > does somebody know how to graph a piecewise constant baseline hazard?
>
> See (Cleves et al. 2004, pp. 215-222) and the example below:
>
> *------------ begin example -------------------
> sysuse cancer, clear
> sum age
> replace age = age-r(mean)
> gen id = _n
> stset studytime, failure(died) id(id)
> stsplit time, at(5 10 20)
> xi: streg i.time i.drug age, dist(exp)
> adjust _Idrug_2=0 _Idrug_3=0 age=0, gen(xb)
> gen haz = exp(xb)
>
> twoway line haz time, c(J) sort
> *---------- end example -----------------------
>
> Mario Cleves, William W. Gould, and Roberto G. Gutierrez (2004) "An
> Introduction to Survival Analysis Using Stata", College Station: Stata
> Press. http://www.stata-press.com/books/saus.html
>
> Hope this helps,
> Maarten
>
> -----------------------------------------
> Maarten L. Buis
> Department of Social Research Methodology
> Vrije Universiteit Amsterdam
> Boelelaan 1081
> 1081 HV Amsterdam
> The Netherlands
>
> visiting address:
> Buitenveldertselaan 3 (Metropolitan), room Z434
>
> +31 20 5986715
>
> http://home.fsw.vu.nl/m.buis/
> -----------------------------------------
>
>
>      ___________________________________________________________
> Rise to the challenge for Sport Relief with Yahoo! For Good
>
> http://uk.promotions.yahoo.com/forgood/
> *
> *   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/
>


-- 
Chiara Mussida
PhD candidate
Doctoral school of Economic Policy
Catholic University, piacenza (Italy)
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index