tabulate_stats: Makes two presentation-ready tables that summarize the...

View source: R/tabulate_stats.R

tabulate_statsR Documentation

Makes two presentation-ready tables that summarize the statistics from the bootstrapped samples and the parameters for creating the bootstrapped samples.

Description

A bootstrapped confidence interval for the desired estimator for the provided sample is calculated for a confidence level level. Other stats and parameters of the distribution and sample are also returned.

Usage

tabulate_stats(stat_list, precision = 2, path = NULL)

Arguments

stat_list

A named list of the summary statistics produced by the calculate_boot_stats function

precision

A integer value for the precision of the table values

path

A character vector with the path to where the tables are to be saved to

Value

a list containing 2 tibble objects: table 1- summary statistics table 2- bootstrapping parameters

Examples

st <- calculate_boot_stats(c(1, 2, 3, 4), 1000, level = 0.95, seed = 123)
result  <-  tabulate_stats(st)
result[[1]] # stats table
result[[2]] # parameter table

UBC-MDS/strapvizr documentation built on March 22, 2022, 6:39 p.m.