Skip to contents

Estimate median and confidence intervals from bootstrap replicates

Usage

boot_bw_estimate(boot_df)

Arguments

boot_df

A data.frame() or a list of data.frame()s of bootstrap replicates with columns for each indicator to estimate. This is produced by a call to boot_bw().

Value

A data.frame() with rows equal to the number of columns of boot_df and 4 columns for indicator, estimate, 95% lower confidence limit, and 95% upper confidence limit.

Examples

boot_df <- boot_bw(
  x = indicatorsHH, w = villageData, statistic = bootClassic,
  params = "anc1", parallel = TRUE, replicates = 9
)
#> 
#> ── Resampling in parallel ──
#> 
#>  Setting up 3 parallel operations
#>  Setting up 3 parallel operations [278ms]
#> 
#>  Resampling with 9 replicates in parallel
#>  Resampling with 9 replicates in parallel [750ms]
#> 
#>  Tidying up resampling outputs
#>  Tidying up resampling outputs [15ms]
#> 
#>  Closing 3 parallel operations
#>  Closing 3 parallel operations [15ms]
#> 

boot_bw_estimate(boot_df)
#>   indicator       est       lcl       ucl        se
#> 1      anc1 0.2303614 0.2026739 0.2473412 0.0146821