Skip to content

tipmap

Tipping Point Analysis for Bayesian Dynamic Borrowing

v1.0.1 · Jun 4, 2026 · Apache License 2.0

Description

Tipping point analysis for clinical trials that employ Bayesian dynamic borrowing via robust meta-analytic predictive (MAP) priors. Further functions facilitate expert elicitation of a primary weight of the informative component of the robust MAP prior and computation of operating characteristics. Intended use is the planning, analysis and interpretation of extrapolation studies in pediatric drug development, but applicability is generally wider.

Downloads

221

Last 30 days

12110th

658

Last 90 days

2.4K

Last year

Trend: +4.7% (30d vs prior 30d)

CRAN Check Status

2 ERROR
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 ERROR
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 ERROR
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (4 non-OK)
ERROR r-oldrel-macos-arm64

examples

Running examples in ‘tipmap-Ex.R’ failed
The error most likely occurred in:

> ### Name: draw_beta_mixture_nsamples
> ### Title: Draw samples from a mixture of beta distributions
> ### Aliases: draw_beta_mixture_nsamples
> 
> ### ** Examples
> 
> rweights <- draw_beta_mixture_nsamples(
+   n = 50,
+   chips_mult = rbind(
+     c(0, 0, 0, 0, 2, 3, 3, 2, 0, 0),
+     c(0, 0, 0, 1, 2, 4, 2, 1, 0, 0),
+     c(0, 0, 0, 2, 2, 2, 2, 2, 0, 0)
+   ),
+   expert_weight = rep(1/3, 3)
+ )
Error in `purrr::map()`:
ℹ In index: 2.
Caused by error:
! `cum_probs` must lie in [0, 1]
Backtrace:
     ▆
  1. ├─tipmap::draw_beta_mixture_nsamples(...)
  2. │ └─tipmap::fit_beta_mult_exp(chips_mult)
  3. │   └─purrr::map(.x = chips_rows, .f = ~get_model_input_1exp(cum_probs = get_cum_probs_1exp(.x)))
  4. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
  5. │       ├─purrr:::with_indexed_errors(...)
  6. │       │ └─base::withCallingHandlers(...)
  7. │       ├─purrr:::call_with_cleanup(...)
  8. │       └─tipmap (local) .f(.x[[i]], ...)
  9. │         └─tipmap::get_model_input_1exp(cum_probs = get_cum_probs_1exp(.x))
 10. │           └─assertthat::assert_that(...)
 11. │             └─base::stop(assertError(attr(res, "msg")))
 12. └─purrr (local) `<fn>`(`<assrtErr>`)
 13.   └─cli::cli_abort(...)
 14.     └─rlang::abort(...)
Execution halted
ERROR r-oldrel-macos-arm64

tests

Running ‘testthat.R’ [4s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(tipmap)
  > 
  > test_check("tipmap")
  Saving _problems/test-draw_beta_mixture_nsamples-9.R
  Saving _problems/test-draw_beta_mixture_nsamples-24.R
  Saving _problems/test-fit_beta_mult_exp-8.R
  Saving _problems/test-get_summary_mult_exp-9.R
  Saving _problems/test-get_summary_mult_exp-41.R
  Treatment effect in target population without borrowing
  Treatment effect in target population without borrowing
  95% credible interval for MAP prior includes null treatment effect
  95% credible interval for MAP prior include
...[truncated]...
n [0, 1]
  Backtrace:
       ▆
    1. ├─tipmap::get_summary_mult_exp(...) at test-get_summary_mult_exp.R:37:3
    2. │ └─tipmap::draw_beta_mixture_nsamples(...)
    3. │   └─tipmap::fit_beta_mult_exp(chips_mult)
    4. │     └─purrr::map(.x = chips_rows, .f = ~get_model_input_1exp(cum_probs = get_cum_probs_1exp(.x)))
    5. │       └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    6. │         ├─purrr:::with_indexed_errors(...)
    7. │         │ └─base::withCallingHandlers(...)
    8. │         ├─purrr:::call_with_cleanup(...)
    9. │         └─tipmap (local) .f(.x[[i]], ...)
   10. │           └─tipmap::get_model_input_1exp(cum_probs = get_cum_probs_1exp(.x))
   11. │             └─assertthat::assert_that(...)
   12. │               └─base::stop(assertError(attr(res, "msg")))
   13. └─purrr (local) `<fn>`(`<assrtErr>`)
   14.   └─cli::cli_abort(...)
   15.     └─rlang::abort(...)
  
  [ FAIL 5 | WARN 2 | SKIP 0 | PASS 185 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-macos-arm64

examples

Running examples in ‘tipmap-Ex.R’ failed
The error most likely occurred in:

> ### Name: draw_beta_mixture_nsamples
> ### Title: Draw samples from a mixture of beta distributions
> ### Aliases: draw_beta_mixture_nsamples
> 
> ### ** Examples
> 
> rweights <- draw_beta_mixture_nsamples(
+   n = 50,
+   chips_mult = rbind(
+     c(0, 0, 0, 0, 2, 3, 3, 2, 0, 0),
+     c(0, 0, 0, 1, 2, 4, 2, 1, 0, 0),
+     c(0, 0, 0, 2, 2, 2, 2, 2, 0, 0)
+   ),
+   expert_weight = rep(1/3, 3)
+ )
Error in `purrr::map()`:
ℹ In index: 2.
Caused by error:
! `cum_probs` must lie in [0, 1]
Backtrace:
     ▆
  1. ├─tipmap::draw_beta_mixture_nsamples(...)
  2. │ └─tipmap::fit_beta_mult_exp(chips_mult)
  3. │   └─purrr::map(.x = chips_rows, .f = ~get_model_input_1exp(cum_probs = get_cum_probs_1exp(.x)))
  4. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
  5. │       ├─purrr:::with_indexed_errors(...)
  6. │       │ └─base::withCallingHandlers(...)
  7. │       ├─purrr:::call_with_cleanup(...)
  8. │       └─tipmap (local) .f(.x[[i]], ...)
  9. │         └─tipmap::get_model_input_1exp(cum_probs = get_cum_probs_1exp(.x))
 10. │           └─assertthat::assert_that(...)
 11. │             └─base::stop(assertError(attr(res, "msg")))
 12. └─purrr (local) `<fn>`(`<assrtErr>`)
 13.   └─cli::cli_abort(...)
 14.     └─rlang::abort(...)
Execution halted
ERROR r-release-macos-arm64

tests

Running ‘testthat.R’ [4s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(tipmap)
  > 
  > test_check("tipmap")
  Saving _problems/test-draw_beta_mixture_nsamples-9.R
  Saving _problems/test-draw_beta_mixture_nsamples-24.R
  Saving _problems/test-fit_beta_mult_exp-8.R
  Saving _problems/test-get_summary_mult_exp-9.R
  Saving _problems/test-get_summary_mult_exp-41.R
  Treatment effect in target population without borrowing
  Treatment effect in target population without borrowing
  95% credible interval for MAP prior includes null treatment effect
  95% credible interval for MAP prior include
...[truncated]...
n [0, 1]
  Backtrace:
       ▆
    1. ├─tipmap::get_summary_mult_exp(...) at test-get_summary_mult_exp.R:37:3
    2. │ └─tipmap::draw_beta_mixture_nsamples(...)
    3. │   └─tipmap::fit_beta_mult_exp(chips_mult)
    4. │     └─purrr::map(.x = chips_rows, .f = ~get_model_input_1exp(cum_probs = get_cum_probs_1exp(.x)))
    5. │       └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    6. │         ├─purrr:::with_indexed_errors(...)
    7. │         │ └─base::withCallingHandlers(...)
    8. │         ├─purrr:::call_with_cleanup(...)
    9. │         └─tipmap (local) .f(.x[[i]], ...)
   10. │           └─tipmap::get_model_input_1exp(cum_probs = get_cum_probs_1exp(.x))
   11. │             └─assertthat::assert_that(...)
   12. │               └─base::stop(assertError(attr(res, "msg")))
   13. └─purrr (local) `<fn>`(`<assrtErr>`)
   14.   └─cli::cli_abort(...)
   15.     └─rlang::abort(...)
  
  [ FAIL 5 | WARN 2 | SKIP 0 | PASS 185 ]
  Error:
  ! Test failures.
  Execution halted

Additional Issues

M1mac Details →

Check History

ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 27, 2026
ERROR r-release-macos-arm64

examples

Running examples in ‘tipmap-Ex.R’ failed
The error most likely occurred in:

> ### Name: draw_beta_mixture_nsamples
> ### Title: Draw samples from a mixture of beta distributions
> ### Aliases: draw_beta_mixture_nsamples
> 
> ### ** Examples
> 
> rwe
...[truncated]...
et_cum_probs_1exp(.x))
 10. │           └─assertthat::assert_that(...)
 11. │             └─base::stop(assertError(attr(res, "msg")))
 12. └─purrr (local) `<fn>`(`<assrtErr>`)
 13.   └─cli::cli_abort(...)
 14.     └─rlang::abort(...)
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies assertthat coda dplyr furrr future ggplot2 magrittr purrr RBesT tipmap

Version History

updated 1.0.1 ← 1.0.0 diff Jun 5, 2026
updated 1.0.0 ← 0.5.2 diff May 27, 2026
new 0.5.2 Mar 10, 2026
updated 0.5.2 ← 0.5.1 diff Aug 13, 2023
updated 0.5.1 ← 0.4.2 diff Aug 12, 2023
updated 0.4.2 ← 0.4.1 diff Jun 16, 2023
updated 0.4.1 ← 0.3.9 diff Apr 23, 2023
updated 0.3.9 ← 0.3.7 diff Dec 6, 2022
updated 0.3.7 ← 0.3.5 diff Oct 22, 2022
updated 0.3.5 ← 0.1.7 diff Sep 1, 2022
updated 0.1.7 ← 0.1.1 diff Jul 11, 2022
new 0.1.1 Jun 30, 2022