Non-Proportional Hazards in Randomized Controlled Trials
Overview
Perform a stratified weighted log-rank test in a randomized controlled trial. Tests can be visualized as a difference in average score on the two treatment arms. These methods are described in Magirr and Burman (2018) doi:10.48550/arXiv.1807.11097, Magirr (2020) doi:10.48550/arXiv.2007.04767, and Magirr and Jimenez (2022) doi:10.48550/arXiv.2201.10445.
- Added a
NEWS.mdfile to track changes to the package. - Added
timefixargument towlrtdeal with round-off error.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 6
- Examples that run
- 100%5 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 50%
Downloads
Dependencies
Installing nphRCT adds 19 packages (9 with compiled code, 14 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.1.1Latest
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.1.02022-09-01
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-09-01
- Total releases
- 2 / 4 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 1.7 KB / 1 file
- Download size
- 148 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("nphRCT")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.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.