[R] How to retrieve bias-corrected probability from calibrate.rms

Frank Harrell f.harrell at vanderbilt.edu
Thu Sep 1 23:53:58 CEST 2011


I'm not clear on what you would use that for, but you can use approx(original
prob from calibrate, calibrated prob from calibrate, xout=vector of original
predicted values)$y to get this.
Frank

yz wrote:
> 
> Thanks Frank
> 
> I got the predicted probability.
> 
> But can I get the bootstrap corrected probability for individual subject.
> 
> for instance, I can get predicted probability from predict(fit,
> type="fitted"). Is there similar one to retrieve the bootstrap corrected
> probability for individual subject.
> 
> THANKS
> 
> *Yao Zhu*
> *Department of Urology
> Fudan University Shanghai Cancer Center
> Shanghai, China*
> 
> 
> 2011/9/1 Frank Harrell <f.harrell at vanderbilt.edu>
> 
>> cal <- calibrate(fit, ...); note that cal is a matrix.  colnames(cal)
>> will
>> tell you what to pick, in this case cal[,'calibrated.corrected'].
>>
>> Be sure to follow the posting guide.
>> Frank
>>
>>
>> yz wrote:
>> >
>> > Dear R users:
>> >
>> > In Prof. Harrell's library rms, calibrate.rms plot the Bias-corrected
>> > Probability and Apparent Probability.
>> > The latter one can be retrieved from class calibrate.default. But how
>> to
>> > retrieve the former one.
>> >
>> > BW
>> >
>> > *Yao Zhu*
>> > *Department of Urology
>> > Fudan University Shanghai Cancer Center
>> > Shanghai, China*
>> >
>> >       [[alternative HTML version deleted]]
>> >
>> > ______________________________________________
>> > R-help at r-project.org mailing list
>> > https://stat.ethz.ch/mailman/listinfo/r-help
>> > PLEASE do read the posting guide
>> > http://www.R-project.org/posting-guide.html
>> > and provide commented, minimal, self-contained, reproducible code.
>> >
>>
>>
>> -----
>> Frank Harrell
>> Department of Biostatistics, Vanderbilt University
>> --
>> View this message in context:
>> http://r.789695.n4.nabble.com/How-to-retrieve-bias-corrected-probability-from-calibrate-rms-tp3783160p3783420.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 


-----
Frank Harrell
Department of Biostatistics, Vanderbilt University
--
View this message in context: http://r.789695.n4.nabble.com/How-to-retrieve-bias-corrected-probability-from-calibrate-rms-tp3783160p3784868.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list