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 = NULL, ...)meanCI(x, na.rm = TRUE, weights = NULL, conf.level = 0.95, ...)
medianrange(x, na.rm = TRUE, weights = NULL, ...)
medianmad(x, na.rm = TRUE, weights = NULL, ...)
median(x, na.rm = TRUE, weights = NULL, ...)
range(x, na.rm = TRUE, ...)
Nevents(x, na.rm = TRUE, weights = NULL, ...)
medSurv(x, na.rm = TRUE, weights = NULL, ...)
NeventsSurv(x, na.rm = TRUE, weights = NULL, times = 1:5, ...)
NriskSurv(x, na.rm = TRUE, weights = NULL, times = 1:5, ...)
Nrisk(x, na.rm = TRUE, weights = NULL, times = 1:5, ...)
medTime(x, na.rm = TRUE, weights = NULL, ...)
q1q3(x, na.rm = TRUE, weights = NULL, ...)
medianq1q3(x, na.rm = TRUE, weights = NULL, ...)
iqr(x, na.rm = TRUE, weights = NULL, ...)
Nmiss(x, na.rm = TRUE, weights = NULL, ...)
Nmiss2(x, na.rm = TRUE, weights = NULL, ...)
N(x, na.rm = TRUE, weights = NULL, ...)
count(x, levels = NULL, na.rm = TRUE, weights = NULL, ...)
countpct(x, levels = NULL, na.rm = TRUE, weights = NULL, ...)
countN(x, levels = NULL, na.rm = TRUE, weights = NULL, ...)
countrowpct(x, levels = NULL, by, by.levels = sort(unique(by)),
na.rm = TRUE, weights = NULL, ...)
countcellpct(x, levels = NULL, by, by.levels = sort(unique(by)),
na.rm = TRUE, weights = NULL, ...)
binomCI(x, levels = NULL, na.rm = TRUE, weights = NULL,
conf.level = 0.95, ...)
rowbinomCI(x, levels = NULL, by, by.levels = sort(unique(by)),
na.rm = TRUE, weights = NULL, conf.level = 0.95, ...)
Usually a vector.
Should NAs be removed?
A vector of weights.
Other arguments.
Numeric, denoting what confidence level to use for confidence intervals.
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
.
Usually a vector of the appropriate numbers.
Not all these functions are exported, in order to avoid conflicting NAMESPACES.