bs_top_n: Bootstrap Average of Top n Values

Description Usage Arguments Value

View source: R/boot_funs.R

Description

Bootstrap the mean of the best (lowest) n values in a vector.

Usage

1
bs_top_n(vec, n = 5, B = 1000)

Arguments

vec

vector of values

n

integer; select n best (lowest) values

B

integer; number of bootstrap replicates

Value

A list with components orig with the original statistic and bs a vector of the bootstrapped statistics


joranE/statskier2 documentation built on May 19, 2019, 8:42 p.m.