Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
audreyyeoCH committed Jan 15, 2024
1 parent cc31aee commit dbb53f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions design/design-doc_ocPredprob.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ h_get_oc_predprob <- function(all_sizes, nnr, decision, nnrE, nnrF) {
## ocPredprob

```{r cars}
ocPostprob <- function(nnE, truep, p0, p1, tL, tU, parE = c(1, 1),
sim = 50000, wiggle = FALSE, nnF = nnE) {
ocPredprob <- function(nnE, truep, p0, p1, tL, tU, parE = c(1, 1),
sim = 50000, wiggle = FALSE, nnF = nnE, decision1 = TRUE) {
nn <- sort(unique(c(nnF, nnE)))
assert_number(sim, lower = 1, finite = TRUE)
assert_flag(wiggle)
Expand All @@ -383,7 +383,7 @@ ocPostprob <- function(nnE, truep, p0, p1, tL, tU, parE = c(1, 1),
nnrF <- nnF
}
nnr <- unique(c(nnrE, nnrF))
if (is.na(decision[k]) && (j <= length(nnr)) && decision == "default") {
if (is.na(decision[k]) && (j <= length(nnr)) && decision1 == TRUE) {
tmp <- h_get_decision_one_predprob(
nnr = nnr,
truep = truep, p0 = p0, p1 = p1,
Expand Down

0 comments on commit dbb53f4

Please sign in to comment.