Learn R Programming

nutshell (version 1.02)

GSE2034: Breast cancer relapse free survival

Description

This data set represents 180 lymph-node negative relapse free patients and 106 lymph-node negate patients that developed a distant metastasis. It contains information on the time until relapse of last follow up for each patient, an indicator of whether the ER gene was expressed, and an indicator whether a relapse occurred.

This data set is used as an example in the book "R in a Nutshell" from O'Reilly Media.

Usage

data(GSE2034)

Arguments

source

http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE2034

Examples

Run this code
data(GSE2034)
library(survival)
GSE2034.Surv <- transform(GSE2034,
  surv=Surv(
    time=GSE2034$months.to.relapse.or.last.followup,
    event=GSE2034$relapse,
    type="right"
    )
  )
GSE2034.survfit <- survfit(
  formula=surv~ER.Status,
  data=GSE2034.Surv )
plot(GSE2034.survfit,lty=1:2)
legend(135,1,c("ER+","ER-"),lty=1:2,cex=0.5)

Run the code above in your browser using DataLab