{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# Note 6 - Stats for Clinical Trials Math 150 Jo Hardin...

This preview shows pages 1–2. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Stats for Clinical Trials, Math 150 Jo Hardin Survival Analysis, R code Apply survival functions in R using prostate cancer data with the following variables: Treatment group 1 = placebo; group 2 = 1mg diethylstilbestrol (DES) Time time died or censored Status 1 if censored; 0 if not censored Age in years Haem haemoglobin, iron containing protein, concentration measurement with normal levels in the teens g/dL Size of tumor, in mm Gleason score (ranges from 2 to 10 with 10 being the worst prognosis) • Importing the data & using the survival library > library(survival) > prostate <- read.table("prostate.csv", header=T, sep=",") > attach(prostate) • Fitting and plotting the Kaplan-Meier survival curve > pros.surv <- survfit(Surv(Time,Status)~Treatment) > plot(pros.surv, lty=2:3,xlab="time", ylab="survival function") > legend(10,.4, c("Treatment 1", "Treatment 2"),lty=2:3) 10 20 30 40 50 60 70 0.0 0.2 0.4 0.6 0.8 1.0 time survival function Treatment 1 Treatment 2 to plot only the first line...
View Full Document

{[ snackBarMessage ]}

### Page1 / 3

Note 6 - Stats for Clinical Trials Math 150 Jo Hardin...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online