harrelfe / rms

Regression Modeling Strategies
https://hbiostat.org/R/rms
Other
172 stars 48 forks source link

Creating a calibration curve for a new dataset #109

Open jeffreycapy opened 3 years ago

jeffreycapy commented 3 years ago

Hi all. Is there a way to use rms to create a calibration curve for a new dataset after the model was established using a trainning dataset? For example, I fitted a cox regression model on the dataset ds1 using the cph() function. Now I have another dataset ds2 with some new samples. I want to first predict the risk for these samples using the established model and then draw a calibration curve for the prediction on this second dataset. How can I realize this using functions provided by rms?

Thanks in advance for any help on this issue.