Skip to content

Commit

Permalink
hide sampling from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Sep 22, 2019
1 parent fc8eba2 commit ea24dca
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 198 deletions.
2 changes: 1 addition & 1 deletion R/ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#' ci(df, method = "HDI", ci = c(.80, .89, .95))
#'
#' library(rstanarm)
#' model <- stan_glm(mpg ~ wt, data = mtcars, chains = 2, iter = 200)
#' model <- stan_glm(mpg ~ wt, data = mtcars, chains = 2, iter = 200, refresh = 0)
#' ci(model, method = "ETI", ci = c(.80, .89))
#' ci(model, method = "HDI", ci = c(.80, .89))
#' \dontrun{
Expand Down
2 changes: 1 addition & 1 deletion R/hdi.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
#' hdi(df, ci = c(.80, .90, .95))
#'
#' library(rstanarm)
#' model <- stan_glm(mpg ~ wt + gear, data = mtcars, chains = 2, iter = 200)
#' model <- stan_glm(mpg ~ wt + gear, data = mtcars, chains = 2, iter = 200, refresh = 0)
#' hdi(model)
#' hdi(model, ci = c(.80, .90, .95))
#'
Expand Down
2 changes: 1 addition & 1 deletion R/mcse.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#' library(bayestestR)
#' library(rstanarm)
#'
#' model <- stan_glm(mpg ~ wt + am, data = mtcars, chains = 1)
#' model <- stan_glm(mpg ~ wt + am, data = mtcars, chains = 1, refresh = 0)
#' mcse(model)
#' @importFrom insight get_parameters
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/simulate_prior.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' library(bayestestR)
#' library(rstanarm)
#'
#' model <- stan_glm(mpg ~ wt + am, data = mtcars, chains = 1)
#' model <- stan_glm(mpg ~ wt + am, data = mtcars, chains = 1, refresh = 0)
#' simulate_prior(model)
#' @export
simulate_prior <- function(model, n = 1000, ...) {
Expand Down
6 changes: 4 additions & 2 deletions docs/articles/guidelines.html

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

2 changes: 1 addition & 1 deletion docs/articles/indicesExistenceComparison.html

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

4 changes: 2 additions & 2 deletions docs/reference/check_prior.html

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

67 changes: 1 addition & 66 deletions docs/reference/ci.html

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

67 changes: 1 addition & 66 deletions docs/reference/hdi.html

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

27 changes: 2 additions & 25 deletions docs/reference/mcse.html

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

27 changes: 2 additions & 25 deletions docs/reference/simulate_prior.html

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

Loading

0 comments on commit ea24dca

Please sign in to comment.