Skip to content

Commit

Permalink
fixed bug in summary.bcsmd() when applied to a Bayes-bcsmd object.
Browse files Browse the repository at this point in the history
  • Loading branch information
jepusto committed Feb 21, 2024
1 parent 5c7f341 commit 1148848
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions R/calc_BCSMD.R
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,14 @@ calc_BCSMD <- function(design,

summary.bcsmd <- function(object, digits = 3, ...) {

converged <- if (inherits(object, "Bayes-bcsmd")) NA_character_ else if (isTRUE(object$converged)) "Yes" else "No"

if (inherits(object, "Bayes-bcsmd")) {
converged <- NA_character_
object$A <- NA_integer_
object$B <- NA_integer_
} else {
converged <- if (isTRUE(object$converged)) "Yes" else "No"
}

ES_summary <- data.frame(
ES = object$g_AB,
SE = object$SE_g_AB,
Expand Down

0 comments on commit 1148848

Please sign in to comment.