You can comment on the book in general on this page.
When you comment on a specific passage, please include chapter, topic and page number. If a topic increases in volume, a new page will be created.
Note: Registration is required in order to use the comment/discussion option
Discussion
chapter 15, table 15.4 95% CI for C statistic - in the example Program for testicular cancer analyses: t821 the line ”## NRI and IDI calculations with Harrell's functions improveProb(x1=as.numeric(NoLDH)-1, x2=as.numeric(YesLDH)-1, y=full$y)” did't work. how can I calculate the 95% CI for c statistic with a tree model? thank you
Calculations for the 95%CI of c are based on the rcorr.cens function in Harrell's Design library. The function gives the SE of Somer's D statistic; divide by 2, multiply by 1.96 for 95%CI.
chapter 15, table 15.4 how can i calculate 95%CI for C statistic in internal valdation. R code t821 internal validation, the line “cat(cstat[1], ”[”, cstat[1]-1.96/2*cstat[3], ” - ”, cstat[1]+1.96/2*cstat[3],”]”)” did not work. 'can not find the cstat object'. can you tell me how can i complete the R code for 95%CI for C statistic in internal valdation. cstat ← rcorr.cens(?, ?)
The issue of estimating a 95% CI after internal validation by bootstrapping is thorny. I discussed this with Frank Harrell several times. One simple approach is use the SE of the original c statistic for the optimism-corrected c statistic. Specific on the programming: The R program needs the object 'cstat' it seems; see help for the rcorr.cens function.