robust_ci: Calculate Bootstrapped Confidence Interval

Description Usage Arguments Value

View source: R/confIntervals.R

Description

Computes confidence interval calculations for the mean and median, both based on bootstrap resampling.

Usage

1
2
robust_ci(x, y = NULL, nboot = 100, alpha = 0.05, FUN = NULL,
  na.rm = F)

Arguments

x

Vector of numeric values.

y

(Optional) vector of numeric values.

nboot

Number indicating number of bootstrap iterations.

alpha

Numeric value indicates confidence level, i.e. the interval covers 1 - alpha.

FUN

Function to evaluate.

na.rm

Logical indicating whether to drop missing values.

Value

List with four numeric vectors: the mean and median values and their respective confidence intervals.


jh-206/taxr documentation built on May 28, 2019, 12:22 p.m.