Skip to content

Commit

Permalink
rm diagnostic_posterior method for now
Browse files Browse the repository at this point in the history
  • Loading branch information
florale committed Mar 1, 2024
1 parent d74b7d6 commit 000ad65
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 43 deletions.
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ S3method(as.data.frame,compilr)
S3method(as.matrix,compilr)
S3method(bayes_factor,brmcoda)
S3method(coef,brmcoda)
S3method(diagnostic_posterior,brmcoda)
S3method(fitted,brmcoda)
S3method(fixef,brmcoda)
S3method(launch_shinystan,brmcoda)
Expand Down Expand Up @@ -62,7 +61,6 @@ importFrom(DT,renderDataTable)
importFrom(abind,abind)
importFrom(bayesplot,pp_check)
importFrom(bayestestR,describe_posterior)
importFrom(bayestestR,diagnostic_posterior)
importFrom(brms,VarCorr)
importFrom(brms,bayes_factor)
importFrom(brms,brm)
Expand Down
36 changes: 18 additions & 18 deletions R/brmcoda-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -225,21 +225,21 @@ pp_check.brmcoda <- function(object, ...) {
pp_check(object$Model, ...)
}

#' Posteriors Sampling Diagnostic
#'
#' Extract diagnostic metrics (Effective Sample Size (`ESS`), `Rhat` and Monte
#' Carlo Standard Error `MCSE`).
#'
#' @param posteriors An object of class \code{brmcoda}.
#' @inheritParams bayestestR::diagnostic_posterior
#' @param ... Other arguments passed to \code{\link{diagnostic_posterior}}.
#'
#' @importFrom bayestestR diagnostic_posterior
#' @method diagnostic_posterior brmcoda
#'
#' @seealso \code{\link[bayestestR:diagnostic_posterior]{diagnostic_posterior}}
#'
#' @export
diagnostic_posterior.brmcoda <- function(posteriors, diagnostic = c("ESS", "Rhat"), ...) {
diagnostic_posterior(posterior$Model, diagnostic = diagnostic, ...)
}
#' #' Posteriors Sampling Diagnostic
#' #'
#' #' Extract diagnostic metrics (Effective Sample Size (`ESS`), `Rhat` and Monte
#' #' Carlo Standard Error `MCSE`).
#' #'
#' #' @param posteriors An object of class \code{brmcoda}.
#' #' @inheritParams bayestestR::diagnostic_posterior
#' #' @param ... Other arguments passed to \code{\link{diagnostic_posterior}}.
#' #'
#' #' @importFrom bayestestR diagnostic_posterior
#' #' @method diagnostic_posterior brmcoda
#' #'
#' #' @seealso \code{\link[bayestestR:diagnostic_posterior]{diagnostic_posterior}}
#' #'
#' #' @export
#' diagnostic_posterior.brmcoda <- function(posteriors, diagnostic = c("ESS", "Rhat"), ...) {
#' diagnostic_posterior(posterior$Model, diagnostic = diagnostic, ...)
#' }
23 changes: 0 additions & 23 deletions man/diagnostic_posterior.brmcoda.Rd

This file was deleted.

0 comments on commit 000ad65

Please sign in to comment.