Skip to content

Commit

Permalink
Update check parm
Browse files Browse the repository at this point in the history
  • Loading branch information
alesmascaro committed Jun 10, 2024
1 parent bfdd9df commit 90abcaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/confint.bcdagCE.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ confint.bcdagCE <- function(object, parm = "all", level = 0.95, ...) {
if (!(level > 0 & level < 1)) {
stop("level must be in (0,1)")
}
if (parm == "all") {
if (prod(parm == "all") == 1) {
alpha <- 1-level
ci <- base::apply(as.matrix(object$causaleffect), 2, stats::quantile, c(alpha/2, 1-alpha/2))
ci <- t(ci)
Expand Down

0 comments on commit 90abcaf

Please sign in to comment.