Bookmark and Share

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

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

st: bootstrap validation and c statistics (help me please !)

From   "Hong, Sounman" <>
To   "" <>
Subject   st: bootstrap validation and c statistics (help me please !)
Date   Tue, 24 May 2011 18:38:08 -0400

I need to validate my model. I heard that I need to do either by a cross-validation or a bootstrap. I have three questions.

1. What is the best statistics to report if I want to show that my model is validated using bootstrap? I read a paper that reported C statistics, although I have to study what that is. Do you recommend me reporting C statistics?

2. Does STATA have a code that generates a shrinkage factor? 

3. I wrote below my STATA code that performs bootstrap and get a C statistics. But I got an error and I don't know why. Please advise.

use bootstrap.dta, clear
estat concordance
matrix b = e(b)
capture program drop mysim
program define mysim, rclass
    use bootstrap.dta, clear
    lroc BPA, nograph beta(b)
    return scalar c=r(c)
simulate c=r(c), reps(100): mysim

Thank you in advance. Any advice would be greatly appreciated.
*   For searches and help try:

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