A collection of functions that will report summary statistics. To create a custom function,
consider using a function with all three arguments and ...
. See the tableby
vignette
for an example.
meansd(x, na.rm = TRUE, weights = rep(1, length(x)), ...)medianrange(x, na.rm = TRUE, weights = rep(1, length(x)), ...)
median(x, na.rm = TRUE, weights = rep(1, length(x)), ...)
range(x, na.rm = TRUE, ...)
Nevents(x, na.rm = TRUE, weights = rep(1, nrow(x)), ...)
medSurv(x, na.rm = TRUE, weights = rep(1, nrow(x)), ...)
NeventsSurv(x, na.rm = TRUE, weights = rep(1, nrow(x)), times = 1:5,
...)
NriskSurv(x, na.rm = TRUE, weights = rep(1, nrow(x)), times = 1:5,
...)
Nrisk(x, na.rm = TRUE, weights = rep(1, nrow(x)), times = 1:5, ...)
medTime(x, na.rm = TRUE, weights = rep(1, nrow(x)), ...)
q1q3(x, na.rm = TRUE, weights = rep(1, length(x)), ...)
medianq1q3(x, na.rm = TRUE, weights = rep(1, length(x)), ...)
iqr(x, na.rm = TRUE, weights = rep(1, length(x)), ...)
Nmiss(x, na.rm = TRUE, weights = rep(1, length(x)), ...)
Nmiss2(x, na.rm = TRUE, weights = rep(1, length(x)), ...)
N(x, na.rm = TRUE, weights = rep(1, length(x)), ...)
count(x, levels = NULL, na.rm = TRUE, weights = rep(1, length(x)),
...)
countpct(x, levels = NULL, na.rm = TRUE, weights = rep(1, length(x)),
...)
countN(x, levels = NULL, na.rm = TRUE, weights = rep(1, length(x)),
...)
countrowpct(x, levels = NULL, by, by.levels = sort(unique(by)),
na.rm = TRUE, weights = rep(1, length(x)), ...)
countcellpct(x, levels = NULL, by, by.levels = sort(unique(by)),
na.rm = TRUE, weights = rep(1, length(x)), ...)
binomCI(x, levels = NULL, na.rm = TRUE, weights = rep(1, length(x)),
conf.level = 0.95, ...)
rowbinomCI(x, levels = NULL, by, by.levels = sort(unique(by)),
na.rm = TRUE, weights = rep(1, length(x)), conf.level = 0.95, ...)
Usually a vector.
Should NAs be removed?
A vector of weights.
Other arguments.
A vector of times to use for survival summaries.
A vector of levels that character x
s should have.
a vector of the by-values.
a vector of the levels of by
.
Numeric, denoting what confidence level to use for confidence intervals.
Usually a vector of the appropriate numbers.
Not all these functions are exported, in order to avoid conflicting NAMESPACES.