Package: FastSurvival 0.2.0

FastSurvival: Fast Survival Analysis and Simulation for Clinical Trials

Provides fast alternatives to standard survival analysis functions in the 'survival' package, together with tools for time-to-event trial simulation and sequential analysis. The estimation and testing functions cover a single-time-point Kaplan-Meier estimator (survfit_fast()), log-rank tests including weighted and stratified variants (survdiff_fast()), a closed-form hazard ratio estimator based on the Pike-Halley Estimator method (coxph_fast()), restricted mean survival time (rmst_fast()), window mean survival time (wmst_fast()), milestone survival comparison (milestone_fast()), median survival time (medsurv_fast()), the max-combo test (maxcombo_fast()), the robust modestly-weighted log-rank test (rmw_fast()), the weighted Kaplan-Meier (Pepe-Fleming) test (wkm_fast()), the average hazard with survival weight (ahsw_fast()), and the Kalbfleisch-Prentice average hazard ratio (ahr_fast()). The simulation layer generates individual patient data (simdata_fast()), performs interim or sequential analyses (analysis_fast()), and aggregates operating characteristics (simsummary_fast()). A visualization layer assembles design-stage scenarios (gen_scenario_fast()) and builds analysis-stage Kaplan-Meier curves (kmcurve_fast()), each with plot and print methods. All functions are designed for repeated evaluation inside large simulation loops, such as adaptive sample-size re-estimation, probability-of-success calculations, and regional consistency evaluation in multi-regional trials. Core computations are implemented in 'C++' via 'Rcpp' for maximum performance. Methodological background is described in Collett (2014, ISBN:9780429196294).

Authors:Gosuke Homma [aut, cre]

FastSurvival_0.2.0.tar.gz
FastSurvival_0.2.0.zip(r-4.7)FastSurvival_0.2.0.zip(r-4.6)FastSurvival_0.2.0.zip(r-4.5)
FastSurvival_0.2.0.tgz(r-4.6-x86_64)FastSurvival_0.2.0.tgz(r-4.6-arm64)FastSurvival_0.2.0.tgz(r-4.5-x86_64)FastSurvival_0.2.0.tgz(r-4.5-arm64)
FastSurvival_0.2.0.tar.gz(r-4.7-arm64)FastSurvival_0.2.0.tar.gz(r-4.7-x86_64)FastSurvival_0.2.0.tar.gz(r-4.6-arm64)FastSurvival_0.2.0.tar.gz(r-4.6-x86_64)
FastSurvival_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
FastSurvival/json (API)

# Install 'FastSurvival' in R:
install.packages('FastSurvival', repos = c('https://gosukehommaex.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gosukehommaex/fastsurvival/issues

Pkgdown/docs site:https://gosukehommaex.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

clinical-trialssurvival-analysistime-to-eventcpp

6.05 score 25 scripts 341 downloads 18 exports 5 dependencies

Last updated from:9650ba90e3. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK238
linux-devel-x86_64OK230
source / vignettesOK361
linux-release-arm64OK241
linux-release-x86_64OK220
macos-release-arm64OK149
macos-release-x86_64OK330
macos-oldrel-arm64OK147
macos-oldrel-x86_64OK325
windows-develOK209
windows-releaseOK224
windows-oldrelOK193
wasm-releaseOK188

Exports:ahr_fastahsw_fastanalysis_fastcoxph_fastgen_scenario_fastkmcurve_fastmaxcombo_fastmedsurv_fastmilestone_fastpairwise_fastrmst_fastrmw_fastsimdata_fastsimsummary_fastsurvdiff_fastsurvfit_fastwkm_fastwmst_fast

Dependencies:BHdqrngmvtnormRcppsitmo

Multi-arm trials: K-arm generation and pairwise comparisons against a shared control
Overview | Design parameters | Data generation | Pairwise analysis against the shared control | The pairwise_fast() convenience wrapper | Operating characteristics under the alternative | Correlation between the contrasts | Family-wise error rate under the global null | Remarks | References

Last update: 2026-07-16
Started: 2026-07-16

Group-sequential design with correlated PFS and OS under the Fleischer model
Overview | The Fleischer model | The design | Design parameters | Data generation | Primary endpoint analysis (PFS) | Key secondary endpoint analysis (OS) | Efficacy and futility boundaries | Operating characteristics | Sequential testing of PFS then OS | Correlation of the log-rank statistics | Remarks | References

Last update: 2026-06-21
Started: 2026-06-11

Comparing the log-rank test and RMST under nonproportional hazards
Design and sample size | Scenarios | A single simulated trial | Power comparison | References

Last update: 2026-06-11
Started: 2026-06-10

Introduction to FastSurvival
Overview | Function families | A minimal example | Where to go next | References

Last update: 2026-06-11
Started: 2026-05-12

Investigating the Freidlin and Korn strong null scenario
Overview | The two scenarios | Methods compared | Results | Interpretation | Notes | References

Last update: 2026-06-11
Started: 2026-06-09

MRCT with complex survival analysis design
What this vignette shows | The two criteria | The scenario | Step 1: simulate the trial with a region-specific accrual delay | Step 2: one event-driven, by-subgroup analysis pass | Step 3: assemble the per-look effect estimates and the two indicators | Step 4: apply the group-sequential boundaries | Step 5: conditional regional consistency probabilities | Tying back to the trio: standard operating characteristics | Notes and extensions | References

Last update: 2026-06-11
Started: 2026-06-09

Group sequential design with the simulation trio
Purpose | The innovaTV 301 trial | Simulating the trial | Interim and final analyses | Spending boundaries | Operating characteristics | Comparison with the closed-form design | Beyond proportional hazards | References

Last update: 2026-06-08
Started: 2026-06-02

Speed comparison
Purpose | Setup | survfit_fast vs survfit + summary | survdiff_fast vs survdiff | coxph_fast vs coxph | rmst_fast vs survRM2::rmst2 | survdiff_fast(weight = "fh") vs nph::logrank.test | wmst_fast vs survWMST::wmst | milestone_fast vs survfit + summary | medsurv_fast vs nph::nphparams | maxcombo_fast vs nph::logrank.maxtest | rmw_fast vs nphRCT::wlrt | wkm_fast vs nphsim::wkm.Stat | ahsw_fast vs survAH::ah2 | ahr_fast vs AHR::ahrKM | Representative results | Why it is faster

Last update: 2026-06-08
Started: 2026-06-02

Validation of FastSurvival
Purpose | Reference data | Kaplan-Meier survival | Log-rank test | Weighted log-rank test | Cox hazard ratio | Restricted mean survival time | Window mean survival time | Weighted Kaplan-Meier test | Milestone survival | Median survival time | Average hazard with survival weight | Average hazard ratio | Max-combo test | Robust modestly-weighted log-rank test | Summary | References

Last update: 2026-06-08
Started: 2026-06-02

Readme and manuals

Help Manual

Help pageTopics
Fast Kalbfleisch-Prentice average hazard ratio for two groupsahr_fast
Fast Average Hazard with Survival Weight (Two-Group Comparison)ahsw_fast
Fast Sequential Analysis of Simulated Trial Dataanalysis_fast
Fast Closed-Form Hazard Ratio Estimation via the Pike-Halley Estimatorcoxph_fast
Build a Set of Two-Group Trial Scenarios for Design Explorationgen_scenario_fast
Build Kaplan-Meier Curves for One Trial Realizationkmcurve_fast
Fast Max-Combo Weighted Log-Rank Test for Two-Group Survival Datamaxcombo_fast
Fast non-parametric median survival time and between-group differencemedsurv_fast
Compare Milestone Survival Probabilities Between Two Groupsmilestone_fast
Pairwise comparisons of each experimental arm against a shared controlpairwise_fast
Plot Method for Kaplan-Meier Curvesplot.kmcurve_fast
Plot Method for Scenario Setsplot.scenario_fast
Print an ahr_fast objectprint.ahr_fast
Print Method for ahsw_fast Objectsprint.ahsw_fast
Print Method for coxph_fast Objectsprint.coxph_fast
Print Method for Kaplan-Meier Curvesprint.kmcurve_fast
Print Method for maxcombo_fast Objectsprint.maxcombo_fast
Print Method for medsurv_fast Objectsprint.medsurv_fast
Print Method for milestone_fast Objectsprint.milestone_fast
Print Method for rmst_fast Objectsprint.rmst_fast
Print Method for rmw_fast Objectsprint.rmw_fast
Print Method for Scenario Setsprint.scenario_fast
Print Method for Sequential Analysis Summariesprint.simsummary_fast
Print Method for survdiff_fast Objectsprint.survdiff_fast
Print Method for survfit_fast Objectsprint.survfit_fast
Print Method for wkm_fast Objectsprint.wkm_fast
Print Method for wmst_fast Objectsprint.wmst_fast
Fast Restricted Mean Survival Time (Single Group or Two-Group Comparison)rmst_fast
Robust Modestly-Weighted Log-Rank Test for Two-Group Survival Datarmw_fast
Fast Simulation of Two-Group Time-to-Event Trial Datasimdata_fast
Summarize Operating Characteristics from Sequential Analysis Outputsimsummary_fast
Fast Log-Rank Test for Two-Group Survival Datasurvdiff_fast
Fast Kaplan-Meier Survival Probability at a Specified Time Pointsurvfit_fast
Fast weighted Kaplan-Meier (Pepe-Fleming) two-sample testwkm_fast
Fast window mean survival time and between-group differencewmst_fast