r – Kaplan-Meier Survival curve with 3 Plots
I am very new to R studio, and I am currently learning how to do Kaplan-Meier survival curves.
Here are the columns that are needed and the information the columns contain:
Group: “normal”, “high”
Response: “responder” “non-responder”
Days: this is the time variable
Outcome: “0”, “1” (0 = censored & 1 = event)
I’m trying to plot 3 plots on one survival curve (Kaplan-Meier curve). I want to plot Normal (regardless of responder status) vs High Responder vs High Non-responder). Is there a way to do this?
I tried making subsets of data (one including only those that are “normal” and then another containing only those that were “high”) so that I could plot the normal (1 plot)(regardless of responder status) and the other subset could be used to plot the high responder vs high nonrepsonder (2 plots) but then I got stuck on how to combine them.
Read more here: Source link