From f4b835c380a8e151657fd540cbd249fc7bf4c8a0 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 30 Jun 2023 20:38:04 +0200 Subject: [PATCH] examples --- R/effective_sample.R | 4 +++- man/effective_sample.Rd | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/R/effective_sample.R b/R/effective_sample.R index b610e6257..0452402f0 100644 --- a/R/effective_sample.R +++ b/R/effective_sample.R @@ -18,7 +18,9 @@ #' @examples #' \dontrun{ #' library(rstanarm) -#' model <- stan_glm(mpg ~ wt + gear, data = mtcars, chains = 2, iter = 200, refresh = 0) +#' model <- suppressWarnings( +#' stan_glm(mpg ~ wt + gear, data = mtcars, chains = 2, iter = 200, refresh = 0) +#' ) #' effective_sample(model) #' } #' @export diff --git a/man/effective_sample.Rd b/man/effective_sample.Rd index 9d69dae74..2040d8af7 100644 --- a/man/effective_sample.Rd +++ b/man/effective_sample.Rd @@ -55,7 +55,9 @@ This function returns the effective sample size (ESS). \examples{ \dontrun{ library(rstanarm) -model <- stan_glm(mpg ~ wt + gear, data = mtcars, chains = 2, iter = 200, refresh = 0) +model <- suppressWarnings( + stan_glm(mpg ~ wt + gear, data = mtcars, chains = 2, iter = 200, refresh = 0) +) effective_sample(model) } }