Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 6, 2024
1 parent 0ff6db5 commit aca1f46
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 25 deletions.
18 changes: 8 additions & 10 deletions R/describe_posterior.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@
#' **bayestestR** supports a wide range of models (see `methods("describe_posterior")`)
#' and not all of those are documented in the 'Usage' section, because methods
#' for other classes mostly resemble the arguments of the `.numeric` method.
#' @param ci_method The type of index used for Credible Interval. Can be
#' `"ETI"` (default, see [bayestestR::eti()]), `"HDI"`
#' (see [bayestestR::hdi()]), `"BCI"` (see
#' [bayestestR::bci()]), `"SPI"` (see [bayestestR::spi()]), or
#' `"SI"` (see [bayestestR::si()]).
#' @param ci_method The type of index used for Credible Interval. Can be `"ETI"`
#' (default, see [`eti()`]), `"HDI"` (see [`hdi()`]), `"BCI"` (see [`bci()`]),
#' `"SPI"` (see [`spi()`]), or `"SI"` (see [`si()`]).
#' @param test The indices of effect existence to compute. Character (vector) or
#' list with one or more of these options: `"p_direction"` (or `"pd"`),
#' `"rope"`, `"p_map"`, `"equivalence_test"` (or `"equitest"`),
#' `"bayesfactor"` (or `"bf"`) or `"all"` to compute all tests.
#' For each "test", the corresponding \pkg{bayestestR} function is called
#' (e.g. [bayestestR::rope()] or [bayestestR::p_direction()]) and its results
#' included in the summary output.
#' `"bayesfactor"` (or `"bf"`) or `"all"` to compute all tests. For each
#' "test", the corresponding \pkg{bayestestR} function is called (e.g.
#' [`rope()`] or [`p_direction()`]) and its results included in the summary
#' output.
#' @param rope_range ROPE's lower and higher bounds. Should be a vector of two
#' values (e.g., `c(-0.1, 0.1)`), `"default"` or a list of numeric vectors of
#' the same length as numbers of parameters. If `"default"`, the bounds are
Expand All @@ -27,7 +25,7 @@
#' @param keep_iterations If `TRUE`, will keep all iterations (draws) of
#' bootstrapped or Bayesian models. They will be added as additional columns
#' named `iter_1, iter_2, ...`. You can reshape them to a long format by
#' running [bayestestR::reshape_iterations()].
#' running [`reshape_iterations()`].
#' @param bf_prior Distribution representing a prior for the computation of
#' Bayes factors / SI. Used if the input is a posterior, otherwise (in the
#' case of models) ignored.
Expand Down
4 changes: 2 additions & 2 deletions R/equivalence_test.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#' to zero the better).
#' \cr \cr
#' Some attention is required for finding suitable values for the ROPE limits
#' (argument `range`). See 'Details' in [`rope_range()`][rope_range]
#' for further information.
#' (argument `range`). See 'Details' in [`rope_range()`] for further
#' information.
#' \cr \cr
#' **Multicollinearity: Non-independent covariates**
#' \cr \cr
Expand Down
4 changes: 2 additions & 2 deletions R/rope.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#' @param ci The Credible Interval (CI) probability, corresponding to the
#' proportion of HDI, to use for the percentage in ROPE.
#' @param ci_method The type of interval to use to quantify the percentage in
#' ROPE. Can be 'HDI' (default) or 'ETI'. See [ci()].
#' ROPE. Can be 'HDI' (default) or 'ETI'. See [`ci()`].
#'
#' @inheritParams hdi
#'
Expand All @@ -46,7 +46,7 @@
#' Kruschke (2010, 2011, 2014) suggests using the proportion of the `95%`
#' (or `89%`, considered more stable) [HDI][hdi] that falls within the
#' ROPE as an index for "null-hypothesis" testing (as understood under the
#' Bayesian framework, see [`equivalence_test()`][equivalence_test]).
#' Bayesian framework, see [`equivalence_test()`]).
#'
#' @section Sensitivity to parameter's scale:
#' It is important to consider the unit (i.e., the scale) of the predictors
Expand Down
16 changes: 7 additions & 9 deletions man/describe_posterior.Rd

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

4 changes: 2 additions & 2 deletions man/equivalence_test.Rd

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

0 comments on commit aca1f46

Please sign in to comment.