Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
audreyyeoCH committed Oct 10, 2024
1 parent a2194d7 commit e42ce48
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 16 deletions.
16 changes: 7 additions & 9 deletions R/boundsPostprob.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,17 @@
#'
#' @example examples/boundsPostprob.R
#' @export
boundsPostprob <- function(looks, p0, p1 = p0, tL, tU, parE = c(1, 1), weights) {
assert_numeric(looks)
assert_number(p0, lower = 0, upper = 1)
assert_number(p1, lower = 0, upper = 1)
assert_number(tL, lower = 0, upper = 1)
assert_number(tU, lower = 0, upper = 1)
assert_numeric(parE, min.len = 2, any.missing = FALSE)
z <- matrix(NA, nrow = length(looks), ncol = 8)
#' @keywords graphics
boundsPostprob <- function(nvec, p0, p1 = p0, tL, tU, a, b) {
z <- matrix(NA, length(nvec), ncol = 6)
znames <- c(
"xL", "pL", "postL", "pL_upper_ci",
"xU", "pU", "postU", "pU_lower_ci"
)
dimnames(z) <- list(looks, znames)
dimnames(z) <- list(nvec, znames)

z <- matrix(NA, length(nvec), length(znames))
dimnames(z) <- list(nvec, znames)
k <- 0
parE <- t(parE)
if (missing(weights)) {
Expand Down
10 changes: 3 additions & 7 deletions man/boundsPostprob.Rd

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

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.

0 comments on commit e42ce48

Please sign in to comment.