powered by
cox.resid(model, covar)
coxph
# 'kidney' dataset in MASS package data(kidney) model<-coxph(Surv(time,status)~age+frail,data=kidney) cox.resid(model,list(age=kidney$age,frail=kidney$frail))
Run the code above in your browser using DataLab