process_bootstrap_stats: Process Bootstrap Statistics

View source: R/helpers.R

process_bootstrap_statsR Documentation

Process Bootstrap Statistics

Description

This function takes in bootstrap statistics and additional arguments to compute the density estimate of the bootstrap statistic, the number of resamples, the mode, median, mean, standard deviation, and confidence interval. It returns a list containing the density estimate and summary statistics.

Usage

process_bootstrap_stats(
  bootstrap_stats = bootstrap_stats,
  density_args = density_args,
  lb = lb,
  ub = ub
)

Arguments

bootstrap_stats

A numeric vector of bootstrap statistics.

density_args

A list of additional arguments to be passed to the density function. Default is NULL.

lb

A numeric value specifying the lower bound for the confidence interval.

ub

A numeric value specifying the upper bound for the confidence interval.

Value

A list with two elements: dens (a density estimate of the bootstrap sample statistics) and stats (a list of summary statistics including number of resamples, mode, median, mean, standard deviation, lower confidence interval (lCI), and upper confidence interval (uCI)).


exactamente documentation built on Aug. 29, 2023, 5:10 p.m.