median_cl_boot: Compute confidence interval of median by bootstrapping.

View source: R/descriptives.R

median_cl_bootR Documentation

Compute confidence interval of median by bootstrapping.

Description

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

Usage

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

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

wrappedtools documentation built on Sept. 24, 2023, 5:06 p.m.