param_summary {JWileymisc} | R Documentation |
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)
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 |
na.rm |
Logical whether to remove NA values. Defaults to |
Value
A data frame of summary statistics
Examples
param_summary(rnorm(100))
[Package JWileymisc version 1.4.1 Index]