pbci: Calculates bootstrapped percentiles and conf. intervals

Description Usage Arguments Value

View source: R/pbci.R

Description

This function calculates a bootstrapped percentile and its confidence interval of a given dataset.

Usage

1
pbci(x, prob = 0.95)

Arguments

x

vector with data

prob

Probability of percentile

Value

list with boot objects and summary data.frame

This functions is a wrapper arround boot and boot.ci from the boot package. The boot statistic is the quantile function.

The returned list contains the boot (tag b) and boot.ci (tag ci) objects. The data from these objects is summarised in the result tag. This contains a data.frame with, respecively, original percentile value (original), mean of bootstrapped results (mean), bias of bootstrapped results towards mean (bias), standard error of bootstrapped results (error), and upper (uci) and lower lci confidence intervals of boot.ci. Confidence intervals are calculated for aan alpan of 0.05.


rivm-syso/achtergrondwaarden documentation built on Jan. 22, 2020, 12:44 a.m.