Learn R Programming

nphRCT (version 0.1.1)

Non-Proportional Hazards in Randomized Controlled Trials

Description

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) , Magirr (2020) , and Magirr and Jimenez (2022) .

Copy Link

Version

Install

install.packages('nphRCT')

Monthly Downloads

228

Version

0.1.1

License

GPL (>= 3)

Maintainer

Dominic Magirr

Last Published

June 27th, 2024

Functions in nphRCT (0.1.1)

moderate_cross

Time-to-event RCT data set with moderate crossing of survival curves.
wlrt

Weighted log-rank test
find_weights

Calculate weights
find_scores

Calculate scores
sim_events_delay

Simulate survival data from a two-arm trial
find_at_risk

Calculate at-risk table