Skip to content

Commit

Permalink
remove unnecessary assertion (not needed inside function), rerun docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Sabanes Bove committed Dec 15, 2023
1 parent 4773aff commit c444912
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
5 changes: 0 additions & 5 deletions R/predprobDist.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ NULL
#' and trial success indicators.
#'
#' @keywords internal

h_predprobdist_single_arm <- function(x,
mE,
n,
Expand Down Expand Up @@ -71,8 +70,6 @@ h_predprobdist_single_arm <- function(x,
activeBetamixPost,
dbetabinomMix(x = 0:mE, m = mE, par = par, weights = weights)
)
assert_numeric(posterior_y, lower = 0, upper = 1, finite = TRUE, any.missing = FALSE)
assert_numeric(density_y, lower = 0, upper = 1, finite = TRUE, any.missing = FALSE)
list(
result = sum(density_y * (posterior_y > thetaT)),
table = data.frame(
Expand All @@ -85,7 +82,6 @@ h_predprobdist_single_arm <- function(x,
)
}


#' The predictive probability of success in two-arm studies.
#'
#' The helper function to generate the predictive probability of success
Expand All @@ -109,7 +105,6 @@ h_predprobdist_single_arm <- function(x,
#' and `success`for trial success indicators.
#'
#' @keywords internal

h_predprobdist <- function(x,
n,
xS,
Expand Down
22 changes: 11 additions & 11 deletions man/oc2.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions man/oc3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c444912

Please sign in to comment.