Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
audreyyeoCH committed Oct 11, 2024
1 parent bb749b9 commit fc3bd8e
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 10 deletions.
8 changes: 0 additions & 8 deletions examples/plotBounds.R
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
# examples
plotBounds(boundsPredprob(
nvec = c(10, 20, 30, 40), p = 0.20, tT = 0.80,
phiL = 0.10, phiU = 0.90, a = 1, b = 1
), yt = "x")
plotBounds(boundsPredprob(
nvec = c(10, 20, 30, 40), p = 0.20, tT = 0.80,
phiL = 0.10, phiU = 0.90, a = 1, b = 1
), yt = "p")
121 changes: 121 additions & 0 deletions man/ocPredprob.Rd

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

4 changes: 2 additions & 2 deletions tests/testthat/test-boundsPredprob.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# boundsPredProb ----
# boundsPredprob ----
test_that("boundsPredprob gives correct result and when default weight is not assigned", {
result_weights <- boundsPredprob(
looks = c(10, 20, 30, 40),
Expand Down Expand Up @@ -40,7 +40,7 @@ test_that("boundsPredprob gives correct result and when default weight is not as
expect_equal(result$LciU, c(0.15, 0.1773, 0.1663, 0.1424))
})

test_that("boundsPredprob with Beta Mixture Priors give correct results with predprob", {
test_that("boundsPredprob with Beta Mixture Priors give correct results", {
result <- boundsPredprob(
looks = c(10, 20),
p0 = 0.20,
Expand Down

0 comments on commit fc3bd8e

Please sign in to comment.