Skip to content

maicplus

0.1.2Package record

Matching Adjusted Indirect Comparison

0packages dependsuggested by 1
4.6Kdownloads / year
89.1%test coverage
12/13flavors OK

Overview

About

Facilitates performing matching adjusted indirect comparison (MAIC) analysis where the endpoint of interest is either time-to-event (e.g. overall survival) or binary (e.g. objective tumor response). The method is described by Signorovitch et al (2012) doi:10.1016/j.jval.2012.05.004.

Changes in 0.1.2
  • Changed the link function to binomial for RD and RR in binary analysis
  • Updated vignette to recommend against bootstrap in unanchored analysis with citation
  • Fix events percentage to properly incorporate weights in the report table for binary analysis
  • Replace quantile function to use matrixStats package instead of desctools package
  • Added testing PH assumptions vignette
  • Fixed the issues with merging weights using match function

From NEWS.md in the release

Install

Health

CRAN checks
1ERROR12OK
Check messages
ERRORexamplesr-devel-linux-x86_64-debian-gcc
Running examples in ‘maicplus-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ph_diagplot
> ### Title: Diagnosis plot of proportional hazard assumption for anchored
> ###   and unanchored
> ### Aliases: ph_diagplot
> 
> ### ** Examples
> 
> # unanchored example using ph_diagplot
> data(weighted_sat)
> data(adtte_sat)
> data(pseudo_ipd_sat)
> 
> ph_diagplot(
+   weights_object = weighted_sat,
+   tte_ipd = adtte_sat,
+   tte_pseudo_ipd = pseudo_ipd_sat,
+   trt_var_ipd = "ARM",
+   trt_var_agd = "ARM",
+   trt_ipd = "A",
+   trt_agd = "B",
+   trt_common = NULL,
+   endpoint_name = "Overall Survival",
+   time_scale = "week",
+   zph_transform = "log",
+   zph_log_hazard = TRUE
+ )
Error in a$specials[[i]] : subscript out of bounds
Calls: ph_diagplot ... model.matrix -> model.matrix.coxph -> delete.response -> off
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
          user system elapsed
kmplot2 10.436  0.245  12.247
ERRORtestsr-devel-linux-x86_64-debian-gcc
Running ‘testthat.R’ [24s/27s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > pkg_name <- "maicplus"
  > library(pkg_name, character.only = TRUE)
  > testthat::test_check(pkg_name)
                result               pvalue 
  "-0.17[-0.61; 0.28]"              "0.535" 
  NULL
  NULL
  NULL
  NULL
  Saving _problems/test-plot_km-143.R
  Saving _problems/test-plot_km-162.R
  Saving _problems/test-plot_km-182.R
  Saving _problems/test-plot_km-201.R
  Saving _problems/test-plot_km-247.R
  Saving _problems/test-plot_km-258.R
  Ignoring unknown labels:
  * colour : "Treatment"
  Ignoring unknown labels:
  * colour : "Treatment"
  Ignoring unknown labels:
  * colour : "Treatment"
  Ignoring unknown labels:
  * colour : "Treatment"
  Ignoring unknown labels:
  * colour : "Treatment"
  Ignoring unknown labels:
  * colour : "Treatment"
  [ FAIL 6 | WARN 0 | SKIP 14 | PASS 82 ]
  
  ══ Skipped tests (14) ══════════════════════════════════════════════════════════
  • On CRAN
...[truncated]...
or/condition>
  Error in `a$specials[[i]]`: subscript out of bounds
  Backtrace:
       ▆
    1. └─vdiffr::expect_doppelganger(...) at test-plot_km.R:251:3
    2.   └─vdiffr (local) writer(fig, testcase, title)
    3.     ├─vdiffr:::print_plot(plot, title)
    4.     └─vdiffr:::print_plot.function(plot, title)
    5.       └─maicplus (local) p()
    6.         └─maicplus::ph_diagplot_schoenfeld(...) at test-plot_km.R:254:7
    7.           ├─stats::residuals(coxobj, type = "schoenfeld")
    8.           └─survival:::residuals.coxph(coxobj, type = "schoenfeld")
    9.             └─survival:::coxph.getdata(object, y = TRUE, x = TRUE, stratax = TRUE)
   10.               ├─stats::model.matrix(fit, data = mf)
   11.               └─survival:::model.matrix.coxph(fit, data = mf)
   12.                 └─stats::delete.response(object$terms)
   13.                   └─stats (local) off(a$specials[[i]])
  
  [ FAIL 6 | WARN 0 | SKIP 14 | PASS 82 ]
  Error:
  ! Test failures.
  Execution halted

CRAN check page ↗

Slowest check: 5.1 min · r-oldrel-windows-x86_64
Status changes
  • ERROR12 OK, 1 ERROR2026-10-24
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
Show 1 earlier changeHide 1 earlier change
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.1.2
README· In the repository, left out of the releaseVignettesYes · 7 · dynamicNEWSYes · 100% structured · mentions 0.1.2Citation fileNoWebsiteYes · pkgdown
Help pages
42 (5 internal)includes a package overview page
Examples that run
100%25 run in a plain check (1 of them under a condition)
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

4.6K
CRAN downloads in the past year
Rank #7,063 · ~13/day · ~381/mo
Daily download trend is not available in this view yet.
39330 days
1.2K90 days
4.6K1 year
Compare downloads with other packages →
Also on186 r2u3 autocran

Repository

11Stars
4Forks
23Open issues
1Open PRs
3Releases
267Commits
9Commit identities
267 commits · Last activity 2025-09-01 · 0% stars, 30d · Default branch at 0.1.2.9000, ahead of CRAN 0.1.2 (checked 2026-10-21) · Discussions: 9 posts
Responsiveness
How these are sampled
PRs merged (all time)
84%
Median days to close, 50 most recently updated closed issues
14
Median days to close, 50 most recently updated closed PRs
3

Stars over time

2025-10-16 · 72026-09-14 · 11
PracticesBeta

8 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/hta-pharma/maicplus on 2026-10-21.

Continuous integration (1)
GitHub Actions
Docs source (2)
pkgdown

GitHub Pages site last deployed 2025-09-01

pkgdown site last built 2025-09-01

Coverage (1)
Coverage reporting
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 2 practices
Automation and maintenance (1)
pre-commit
Lint, format, editor (2)
lintrRStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)

Installing maicplus adds 16 packages (11 with compiled code, 17 MB of source tarballs). Heaviest: stringi 11 MB, sandwich 1.4 MB, vctrs 1.0 MB.

Depends (1)
R >= 4.1
Imports (11)
graphicsgrDevicesstatssurvivallubridatematrixStatsMASSbootstringrlmtestsandwich
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

Datasets

People & History

People (7)
Author, Maintainer since 0.1.0 (2024)
Contributor
Copyright holder, Funder
Copyright holder, Funder
Releases (3)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.2Latest
    record
    2025-02-21 · current release · diff ↗
  • 0.1.1
    record
    2024-11-22 · diff ↗
  • 0.1.0
    record
    2024-11-10
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-11-10
Total releases
3 / 2 yrs
License
Apache License 2.0 OSI
Minimum R
≥ 4.1
Bundled data
561 KB / 13 files
Download size
1.7 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("maicplus")
Gravestock, I., F. Hoffmann-La Roche AG, MSD, Inc., Antoniou, M., Chen, G., Kalyvas, C., & Seo, M. (2025). maicplus: Matching Adjusted Indirect Comparison (Version 0.1.2) [Computer software]. https://doi.org/10.32614/CRAN.package.maicplus

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for maicplus version 0.1.2 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy