Skip to content

RMSTpowerBoost

1.0.3Package record

Power and Sample Size for Restricted Mean Survival Time Based Clinical Trials

0packages depend
2.1Kdownloads / year
95.8%test coverage
12/13flavors OK

Overview

About

Tools for Restricted Mean Survival Time based study design and analysis planning. Provides power and sample size calculations for two-arm studies using direct modeling approaches from the literature, including semiparametric additive models, linear Inverse Probability Weighting based models from Wei (2014) doi:10.1093/biostatistics/kxt050, multiplicative stratified models from Wang (2019) doi:10.1002/sim.8356, and covariate-dependent censoring methods from Wang (2018) doi:10.1007/s10985-017-9391-6.

Install

Health

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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: MS.power.analytical
> ### Title: Analyze Power for a Multiplicative Stratified RMST Model
> ###   (Analytic)
> ### Aliases: MS.power.analytical
> 
> ### ** Examples
> 
> set.seed(123)
> pilot_df_strat <- data.frame(
+  time = rexp(120, 0.15),
+  status = rbinom(120, 1, 0.6),
+  arm = rep(0:1, each = 60),
+  region = factor(rep(c("A", "B", "C"), each = 40))
+ )
> pilot_df_strat$time[pilot_df_strat$arm == 1] <- pilot_df_strat$time[pilot_df_strat$arm == 1] * 1.5
> 
> power_results <- MS.power.analytical(
+  pilot_data = pilot_df_strat,
+  time_var = "time", status_var = "status", arm_var = "arm", strata_var = "region",
+  sample_sizes = c(50, 75, 100),
+  L = 10, alpha = 0.05
+ )
Error in a$specials[[i]] : subscript out of bounds
Calls: MS.power.analytical ... survfit.coxph -> model.matrix.coxph -> delete.response -> off
Execution halted
ERRORtestsr-devel-linux-x86_64-debian-gcc
Running ‘testthat.R’ [80s/90s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(RMSTpowerBoost)
  > 
  > test_check("RMSTpowerBoost")
  Saving _problems/testthat-additive-78.R
  Saving _problems/testthat-additive-89.R
  Saving _problems/testthat-apps-49.R
  Saving _problems/testthat-coverage-gates-230.R
  Saving _problems/testthat-rmst-interface-230.R
  Saving _problems/testthat-rmst-interface-239.R
  Saving _problems/testthat-rmst-interface-247.R
  Saving _problems/testthat-rmst-interface-258.R
  Saving _problems/testthat-rmst-interface-295.R
  Saving _problems/testthat-rmst-interface-317.R
  Saving _problems/testthat-rmst-interface-328.R
  Saving _problems/testthat-rmst-interface-353.R
  Saving _problems/testthat-rmst-interface-380.R
  `geom_line()`: Each group consists of only one observation.
  i Do you need to adjust the group aesthetic?
  Saving _problems/testthat_DC-38.R
  Saving _problems/testthat_DC-60.R
  Saving _problems/test
...[truncated]...
l::survfit(fit, se.fit = FALSE)
   4.     └─survival:::survfit.coxph(fit, se.fit = FALSE)
   5.       └─survival:::model.matrix.coxph(object, data = mf)
   6.         └─stats::delete.response(object$terms)
   7.           └─stats (local) off(a$specials[[i]])
  ── Error ('testthat_strat.R:82:4'): Analytical and Bootstrap methods give comparable results for multiplicative model ──
  <subscriptOutOfBoundsError/error/condition>
  Error in `a$specials[[i]]`: subscript out of bounds
  Backtrace:
      ▆
   1. └─RMSTpowerBoost::MS.ss.analytical(...) at testthat_strat.R:82:4
   2.   └─survival::basehaz(fit_cens, centered = FALSE)
   3.     ├─survival::survfit(fit, se.fit = FALSE)
   4.     └─survival:::survfit.coxph(fit, se.fit = FALSE)
   5.       └─survival:::model.matrix.coxph(object, data = mf)
   6.         └─stats::delete.response(object$terms)
   7.           └─stats (local) off(a$specials[[i]])
  
  [ FAIL 21 | WARN 0 | SKIP 1 | PASS 438 ]
  Error:
  ! Test failures.
  Execution halted

CRAN check page ↗

Slowest check: 6.9 min · r-oldrel-windows-x86_64
Status changes
  • ERROR12 OK, 1 ERROR2026-10-24
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK5 OK2026-04-29
Advisories

none known

Documentation

In release 1.0.3
READMEYes · 138 wordsVignettesYes · 4 · dynamicNEWSYes · 67% structured · does not mention 1.0.3Citation fileYes · computed when R runs itWebsiteYes · pkgdown
Help pages
38 (1 internal)
Examples that run
88%28 run in a plain check (1 of them under a condition) · 4 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
90%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

2.1K
CRAN downloads in the past year
Rank #12,198 · ~6/day · ~174/mo
Daily download trend is not available in this view yet.
35230 days
91290 days
2.1K1 year
Compare downloads with other packages →
Also on33 r2u3 autocran

Repository

0Stars
0Forks
0Open issues
2Open PRs
2Releases
198Commits
5Commit identities
powerrmstrpackagesamplesizeshinyappsbootsrapfrequentist-methodssurvival-analysis
198 commits · Last activity 2026-10-08 · Discussions: 1 post
Responsiveness
How these are sampled
PRs merged (all time)
43%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
10

Releases over time

2025-07-10 · 22026-07-07 · 2
PracticesBeta

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

Checks run against github.com/uthsc-zhang/rmstpowerboost-package on 2026-10-21.

Continuous integration (1)
GitHub Actions
Governance and community (1)
Issue templates
Docs source (2)
pkgdown

GitHub Pages site last deployed 2026-10-08

pkgdown site last built 2026-04-17, before release 1.0.3 (2026-04-28)

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
Reproducibility and dev environment (1)
renv
Automation and maintenance (1)
Dependabot
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2026-04-20
    Pull request: opened by its own account
    Commits: 1 by its own account
  • Claude Codefirst seen 2026-07-09
    Named in .Rbuildignore: .claude
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
22 external dependencies (excludes base and recommended)

Installing RMSTpowerBoost adds 36 packages (16 with compiled code, 18 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.

Depends (1)
R >= 4.1.0
Imports (10)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 1.0.3 (2026)
Author
Releases (1)
  • 1.0.3Latest
    2026-04-28 · current release
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-04-28
Total releases
1 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1.0
Bundled data
14 KB / 4 files
Download size
337 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("RMSTpowerBoost")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

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 RMSTpowerBoost version 1.0.3 [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