Learn R Programming

resample (version 0.2)

limits.percentile: Bootstrap confidence intervals

Description

Bootstrap confidence intervals - percentile method or t interval.

Usage

limits.percentile(x, probs = c(0.025, 0.975), ...)
limits.t(x, probs = c(0.025, 0.975))

Arguments

x
a bootstrap or bootstrap object.
probs
probability values, between 0 and 1. The default vector c(0.025, 0.975) gives a 95% two-sided interval.
...
additional arguments to pass to quantile.resample and quantile.

Value

  • a matrix with one row for each value in probs and one column for each statistic.

See Also

bootstrap, bootstrap2.

Examples

Run this code
mydata <- data.frame(a = runif(40), b = rnorm(40))
boot1 <- bootstrap(mydata, colMeans)
limits.t(boot1)
limits.percentile(boot1)

Run the code above in your browser using DataLab