Description Usage Arguments Value Author(s) References See Also Examples
View source: R/Surv.survtype.R
Any patient who lived longer than the median was considered to be a "low-risk" patient, and any patient that lived less than the median was considered to be a "high-risk"" patient. In this manner, we assigned a class label to each observation. For censored data, we can estimate the probability that each censored observation belongs to the "low-risk" and "high-risk" classes, respectively.
1 | Surv.survtype(surv.data, time, status)
|
surv.data |
survival data |
time |
survival time |
status |
status indicator |
n |
the number of subjects in each group |
obs |
the weighted observed number of events in each group |
exp |
the weighted expected number of events in each group |
chisq |
the chi-squared statistic for a test of equality |
call |
the matched call |
cluster |
a vector of clusters to which samples are assigned |
time |
survival time |
status |
status indicator |
surv.data |
survival data |
fit |
fitted survival curves |
Dongmin Jung
Bair, E., & Tibshirani, R. (2004). Semi-supervised methods to predict patient survival from gene expression data. PLoS biology, 2(4), e108.
survival::Surv, survival::survfit, survival::survdiff
1 2 | data(ovarian)
ovarian.survtype <- Surv.survtype(ovarian, time = "futime", status = "fustat")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.