Skip to content

Commit 52993a9

Browse files
committed
clean
1 parent 47ae4d7 commit 52993a9

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

R/dbetabinom.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ h_getBetamixPost <- function(x, n, par, weights) {
9696
lbeta(a = par[, 1], b = par[, 2])
9797
)
9898
# We compute the updated weights of the posterior
99-
postWeights <- exp(log(weights) + log(tmp)) - sum(weights * tmp)
99+
postWeights <- weights * tmp / sum(weights * tmp)
100100
assert_numeric(postWeights)
101101
list(
102102
par = postPar,

examples/ocPredprobDist.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
\donttest{
21
# Here we illustrate an example for Decision 1 with the following assumptions :
32
# Efficacy Looks and Futility looks are identical at sample size of 10, 20 and 30.
43
# True response rate or truep of the treatment group = 40%

man/ocPredprobDist.Rd

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/plotDecision.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/plotOc.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)