Skip to content

Commit

Permalink
Update description
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua committed Aug 28, 2024
1 parent 7ba72dc commit 900b6d5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 46 deletions.
19 changes: 12 additions & 7 deletions R/boot_ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
#' This function first applies [boot::boot()] to convert the input data `x` to a `boot` object and then uses
#' [boot::boot.ci()] to calculate the corresponding nonparametric bootstrap confidence interval.
#'
#' @param x vector of numeric values, i.e. a numeric vector, or a logical vector which will be interpreted
#' as binary with values `c(0, 1)`.
#' @param conf.level (`numeric`)\cr
#' a scalar in `(0, 1)` indicating the confidence level.
#' Default is `0.95`
#' @inheritParams boot::boot
#' @inheritParams boot::boot.ci
#' @param x (`numeric`)\cr vector of numeric values, i.e. a numeric vector, or a logical vector which will be
#' interpreted as binary with values `c(0, 1)`.
#' @param conf.level (`numeric`)\cr a scalar in `(0, 1)` indicating the confidence level. Default is `0.95`.
#' @param R (`integer`)\cr the number of bootstrap replicates. See the parameter description in [boot::boot()]
#' for details.
#' @param type (`character`)\cr a vector of character strings representing the type of intervals required. The value
#' should be any subset of the values `c("norm","basic", "stud", "perc", "bca")` or simply `"all"` which will
#' compute all five types of intervals.
#' @param stype (`string`)\cr a character string indicating what the second argument of statistic represents.
#' Possible values of stype are `"i"` (indices - the default), `"f"` (frequencies), or `"w"` (weights).
#' @param statistic (`function`)\cr a function which, when applied to data, returns a vector containing the
#' statistic(s) of interest. See the parameter description in [boot::boot()] for details.
#'
#' @return Bootstrap confidence interval.
#' @export
Expand Down
51 changes: 12 additions & 39 deletions man/boot_ci.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 900b6d5

Please sign in to comment.