Skip to content

Commit

Permalink
run docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Sabanes Bove committed Jul 25, 2023
1 parent 734edb5 commit c5b9528
Show file tree
Hide file tree
Showing 32 changed files with 652 additions and 506 deletions.
3 changes: 2 additions & 1 deletion .lintr
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
linters: with_defaults(
line_length_linter = line_length_linter(120),
cyclocomp_linter = NULL,
object_usage_linter = NULL
object_usage_linter = NULL,
object_name_linter = NULL
)
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Encoding: UTF-8
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.0
RoxygenNote: 7.2.3
Collate:
'Phase1b-package.R'
'betadiff.R'
Expand Down
4 changes: 2 additions & 2 deletions R/dbetabinom.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ dbetaMix <- Vectorize(dbetaMix, vectorize.args = "x")
##' @param par the beta parameters matrix, with K rows and 2 columns,
##' corresponding to the beta parameters of the K components
##' @param weights the mixture weights of the beta mixture prior
##' @param lower.tail logical; if TRUE (default), probabilities are P[X <= x],
##' and otherwise P[X > x]
##' @param lower.tail logical; if TRUE (default), probabilities are `P[X <= x]`,
##' and otherwise `P[X > x]`
##' @return the (one minus) cdf value
##'
##' @export
Expand Down
4 changes: 2 additions & 2 deletions R/plotBounds.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
##' @param yt indicate the y axis: response rate is "p", number of responses
##' is "x"
##' @param add add the boundary lines or not
##' @param cols specific the color of [1] efficacy area [2] futility area
##' [3] efficacy boundary [4] futility boundary
##' @param cols specific the color of `[1]` efficacy area `[2]` futility area
##' `[3]` efficacy boundary `[4]` futility boundary
##' @param lwds line width (a two dimensional vector)
##' @param ltype line type
##' @param lpch a value of plotting characters or symbols
Expand Down
6 changes: 3 additions & 3 deletions R/postprob.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ postprobOld <- function(x, n, p, a = 1, b = 1) {
##' Compute the posterior probability to be above threshold,
##' with a beta mixture prior on the response rate.
##'
##' Computes the posterior probability Pr(P_E > p | data). Prior is P_E ~
##' sum(weights * beta(parE[, 1], parE[, 2])), i.e., a mixture of beta priors.
##' Default is one component only with uniform or beta(1,1).
##' Computes the posterior probability `Pr(P_E > p | data)`. Prior is
##' `P_E ~ sum(weights * beta(parE[, 1], parE[, 2]))`, i.e., a mixture of beta priors.
##' Default is one component only with uniform or `beta(1,1)`.
##'
##' We observed x successes in n trials. Note that \code{x} can be a vector.
##'
Expand Down
55 changes: 32 additions & 23 deletions man/betadiff.Rd

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

6 changes: 4 additions & 2 deletions man/boundsPostprob.Rd

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

7 changes: 4 additions & 3 deletions man/boundsPredprob.Rd

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

8 changes: 4 additions & 4 deletions man/dbetabinom.Rd

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

17 changes: 10 additions & 7 deletions man/getBetamixPost.Rd

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

2 changes: 1 addition & 1 deletion man/logit.Rd

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

4 changes: 2 additions & 2 deletions man/myPlot.Rd

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

6 changes: 3 additions & 3 deletions man/myPlotDiff.Rd

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

Loading

0 comments on commit c5b9528

Please sign in to comment.