median_cl_boot: Compute confidence interval of median by bootstrapping.

Description Usage Arguments Value Examples

View source: R/descriptives.R

Description

median_cl_boot computes lower and upper confidence limits for the estimated median, based on bootstrapping.

Usage

1
median_cl_boot(x, conf = 0.95, type = "basic", nrepl = 10^3)

Arguments

x

Data for computation.

conf

confidence interval with default 95%.

type

type for function boot.ci.

nrepl

number of bootstrap replications, defaults to 1000.

Value

A tibble with one row and three columns: Median, CIlow, CIhigh.

Examples

1
2
# basic usage of meanse
median_cl_boot(x = mtcars$wt)

wrappedtools documentation built on Sept. 6, 2021, 5:08 p.m.