Estimate median and confidence intervals from bootstrap replicates
Source:R/boot_bw_estimate.R
boot_bw_estimate.Rd
Estimate median and confidence intervals from bootstrap replicates
Arguments
- boot_df
A
data.frame()
or a list ofdata.frame()
s of bootstrap replicates with columns for each indicator to estimate. This is produced by a call toboot_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