Skip to content

Commit

Permalink
Create Survival analysis.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MoganaD committed Sep 3, 2018
1 parent aeed022 commit 95cbbae
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Survival analysis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Survival analysis in R- Plot survival curves to analyse the survival time of breast cancer patients
## load the packages
> library(GGally)
> library(ggplot2)
> library(survival)
## read file
>all_data <- read.csv (file='D:/model_evaluation/all_data.csv')
## Choose variables to predict the survival time
> sc.stage<-survfit(Surv(Survival_years,Event = = 0)~V9,
data= all_data)
## Plot survival curve
> ggsurv(ethnicity)
Repeat the steps for all the important variables.

0 comments on commit 95cbbae

Please sign in to comment.