NDK
BLOCK: SURVIVAL
ANALYSIS
August 21, 28, and
1.
First
save the TK.R.functions.R.txt
text file on your computer.
This file contains an R script file.
Must remove the .txt from the file name.
2. This R script file is named TK.R.functions.R
Place it in your R directory.
Then use the code >
source(“TK.R.functions.R”)
to load the functions into your work
session.
3. The function
emphazplot has been replaced by the function g.emphaz.
Example:
> library(survival)
>
attach(aml)
>
Surv0 <- Surv(weeks[group==0],status[group==0])
> Surv1 <- Surv(weeks[group==1],status[group==1])
> data <-
list(Surv0,Surv1)
> g.emphaz(data,
“ht”,legend=c(“nonmaintained”,
“maintained”),main=“hi tilde”)
21.August.2006:
in-class overhead slides by
Mara. These are in a PDF file format.
28.August.2006:
in-class overhead slides by
Mara. These are in a PDF file format.