Skip to content

Commit

Permalink
examples
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jul 2, 2023
1 parent 939fb8c commit b658741
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions R/hdi.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,21 @@
#' model <- suppressWarnings(
#' stan_glm(mpg ~ wt + gear, data = mtcars, chains = 2, iter = 200, refresh = 0)
#' )
#' hdi(model)
#' hdi(model, ci = c(0.80, 0.90, 0.95))
#' bayestestR::hdi(model)
#' bayestestR::hdi(model, ci = c(0.80, 0.90, 0.95))
#'
#' library(emmeans)
#' hdi(emtrends(model, ~1, "wt", data = mtcars))
#' bayestestR::hdi(emtrends(model, ~1, "wt", data = mtcars))
#'
#' library(brms)
#' model <- brms::brm(mpg ~ wt + cyl, data = mtcars)
#' hdi(model)
#' hdi(model, ci = c(0.80, 0.90, 0.95))
#' bayestestR::hdi(model)
#' bayestestR::hdi(model, ci = c(0.80, 0.90, 0.95))
#'
#' library(BayesFactor)
#' bf <- ttestBF(x = rnorm(100, 1, 1))
#' hdi(bf)
#' hdi(bf, ci = c(0.80, 0.90, 0.95))
#' bayestestR::hdi(bf)
#' bayestestR::hdi(bf, ci = c(0.80, 0.90, 0.95))
#' }
#' @author Credits go to **ggdistribute** and [**HDInterval**](https://github.com/mikemeredith/HDInterval).
#'
Expand Down
14 changes: 7 additions & 7 deletions man/hdi.Rd

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

0 comments on commit b658741

Please sign in to comment.