Learn R Programming

varian (version 0.2.2)

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, digits = 2, pretty = FALSE, ..., na.rm = TRUE)

Arguments

x
a data vector to operate on
digits
Number of digits to round to for printing
pretty
Logical value whether prettified values should be returned. Defaults to FALSE.
na.rm
Logical whether to remove NA values. Defaults to TRUE
...
Additional arguments passed to pval_smartformat to control p-value printing.

Value

.

Examples

Run this code
param_summary(rnorm(100))
param_summary(rnorm(100), pretty = TRUE)

Run the code above in your browser using DataLab