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?
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 datasetds1
using thecph()
function. Now I have another datasetds2
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 byrms
?Thanks in advance for any help on this issue.