median_cl_boot {wrappedtools} | R 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)
[Package wrappedtools version 0.9.5 Index]