Statalist


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

Re: st: Bootstrap Estimates Stata V10


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: Bootstrap Estimates Stata V10
Date   Wed, 25 Mar 2009 11:48:20 +0000 (GMT)

--- On Tue, 24/3/09, Max Bulsara wrote:
> Is there a way of obtaining a Bootstrap estimate of
> Harrell's C concordance statistics after stcox for 
> each bootstrap replication? 

*--------------- begin example -------------------
use http://www.stata-press.com/data/cggm/reyes, clear
gen lamm = ln(ammonia)

capture program drop b_conc
program define b_conc, rclass
	stcox treat lamm, efron
	estat concordance
	return scalar c = r(C)
end
bootstrap c=r(c), reps(100): b_conc
*--------------- end example ---------------------
(For more on how to use examples I sent to the Statalist, see
http://home.fsw.vu.nl/m.buis/stata/exampleFAQ.html )

Hope this helps,
Maarten

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

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index