0

I'm trying to get the AUC and generate an ROC curve for a coxph model. I've tried reading about ROCR and pROC but I can't figure out the right package or script to use. I do not have a training and test set, only one dataset used to generate this model.

my coxPH model is as follows:

fit1 <- coxph(Surv(time_to_event, Censor) ~ pulm + immuno, data=txp)

Looking for help, and thank you!

Emily
  • 1
  • 2
    It looks like you're new to SO; welcome to the community! If you want great answers quickly, it's best to make your question reproducible. This includes sample data like the output from `dput(head(dataObject)))` and any libraries you are using. Check it out: [making R reproducible questions](https://stackoverflow.com/q/5963269). In a language like R, where it's really flexible, this is really important. If you can't share your data or objects, make similar fake data to share. – Kat Apr 16 '22 at 20:31

0 Answers0