Skip to contents

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
#> # A tibble: 1 × 4
#>   `Sample Mean` `Lower Bound CI` `Upper Bound CI` `Standard Error`
#>           <dbl>            <dbl>            <dbl>            <dbl>
#> 1           2.5              1.5              3.5             0.55
result[[2]] # parameter table
#> # A tibble: 1 × 3
#>   `Sample Size` Repetitons `Significance Level`
#>           <int>      <dbl>                <dbl>
#> 1             4       1000                 0.05