[R] Plotting Coxph model with an interaction.
j@ork|n @end|ng |rom @om@um@ry|@nd@edu
Thu May 20 19:28:20 CEST 2021
I hope someone can tell me how to plot a cox model that contains an interaction term.
I know that plot(survfit(. . . . )) can be used to plot a Cox model, i.e..
coxfit <- coxph(Surv(futime, fustat) ~ age+rx, data = ovarian)
but I don't know how to plot a cox model with an interaction, i.e.
coxfit <- coxph(Surv(futime, fustat) ~ age+rx+age*rx, data = ovarian)
John David Sorkin M.D., Ph.D.
Professor of Medicine
Chief, Biostatistics and Informatics
University of Maryland School of Medicine Division of Gerontology and Geriatric Medicine
Baltimore VA Medical Center
10 North Greene Street
Baltimore, MD 21201-1524
(Fax) 410-605-7913 (Please call phone number above prior to faxing)
More information about the R-help