Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devel convergence vignette #53

Open
wants to merge 12 commits into
base: devel
Choose a base branch
from
3 changes: 2 additions & 1 deletion R/baggr.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#' with the same columns as `data` argument
#' @param warn print an additional warning if Rhat exceeds 1.05
#' @param ... extra options passed to Stan function, e.g. \code{control = list(adapt_delta = 0.99)},
#' number of iterations etc.
#' number of iterations etc. For more details see [rstan::sampling()] and [rstan::stan()].
#' @return `baggr` class structure: a list including Stan model fit
#' alongside input data, pooling metrics, various model properties.
#' If test data is used, mean value of -2*lpd is reported as `mean_lpd`
Expand Down Expand Up @@ -300,6 +300,7 @@ baggr <- function(data, model = NULL, pooling = "partial",
warning(paste0("Rhat statistic for ", sum(rhat > 1.05),
" parameters exceeded 1.05, with maximum equal to ",
round(max(rhat),2), ". This suggests lack of convergence.",
"\n Consider running the model chains for more iterations.",
"\n No further warning will be issued.",
"\n Stan model saved as $fit in the returned object. \n"))

Expand Down
31 changes: 0 additions & 31 deletions man/baggr-package.Rd

This file was deleted.

190 changes: 0 additions & 190 deletions man/baggr.Rd

This file was deleted.

78 changes: 0 additions & 78 deletions man/baggr_compare.Rd

This file was deleted.

62 changes: 0 additions & 62 deletions man/baggr_plot.Rd

This file was deleted.

Loading