param_summary: Calculates summaries for a parameter
Description
This function takes a vector of statistics and calculates
several summaries: mean, median, 95
the empirical p-value, that is, how many fall on the other
side of zero.
Usage
param_summary(x, trans = function(x) x, ..., na.rm = TRUE)
Value
A data frame of summary statistics
Arguments
x
a data vector to operate on
trans
A function to transform the data. Used for summaries,
but not p-values. Defaults to the identity function.
...
Additional arguments passed to formatPval
to control p-value printing.
na.rm
Logical whether to remove NA values. Defaults to TRUE