Sdescribe {SurvivalTests} | R Documentation |
Descriptive Statistics
Description
Sdescribe
produces number of observations (n), number of events (nE), and the mean survival with confidence limits for the mean.
Usage
Sdescribe(formula, data, level = 0.95, nM = 5000, na.rm = TRUE,
verbose = TRUE)
Arguments
formula |
a formula of the form |
data |
a data frame containing the variables in |
level |
the confidence level. |
nM |
a number of bootstrap samples. |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
verbose |
a logical for printing output to R console. |
Value
Returns a data.frame of output with class "Sdescribe".
Author(s)
Malwane Ananda, Osman Dag
Examples
library(survival)
lung$status <- ifelse(lung$status == 2, 1, 0)
lung$age <- arules::discretize(lung$age, breaks = 3, labels = c("Low","Medium","High"))
library(SurvivalTests)
Sdescribe(time~age+status, lung)
[Package SurvivalTests version 1.0 Index]