summary_functions | R Documentation |
continuous_summary_fns()
returns a named list of summary functions
for continuous variables. Some functions include slight modifications to
their base equivalents. For example, the min()
and max()
functions
return NA
instead of Inf
when an empty vector is passed.
Statistics "p25"
and "p75"
are calculated with quantile(type = 2)
,
which matches
SAS's default value.
continuous_summary_fns(
summaries = c("N", "mean", "sd", "median", "p25", "p75", "min", "max"),
other_stats = NULL
)
summaries |
( |
other_stats |
(named |
named list of summary statistics
# continuous variable summaries
ard_continuous(
ADSL,
variables = "AGE",
statistic = ~ continuous_summary_fns(c("N", "median"))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.