quantile_confint_boot: Confidence interval method for a given quantile based on the...

Description Usage Arguments Details Value Examples

View source: R/quantile_confints.R

Description

Confidence interval method for a given quantile based on the basic bootstrap and using the percentile method.

Usage

1
quantile_confint_boot(x, p, conf.level = 0.95, R = 999, type = 7)

Arguments

x

vector of observations

p

quantile of interest

conf.level

A conf.level * 100% confidence interval is computed

R

number of replications to use in the bootstrap (Default: 999)

type

Type of empirical quantile estimation procedure, @seealso the quantile function.

Details

Basic bootstrap with the confidence interval computed based on the percentile method.

Value

A vector of length two containing the lower and upper limit of the two-sided confidence interval.

Examples

1
2
3
set.seed(123)
x <- rnorm(25)
quantile_confint_boot(x=x, p=0.8, conf.level=0.95, R=999)

hoehleatsu/quantileCI documentation built on Aug. 29, 2021, 4:33 a.m.