README.md

Assess total trial duration in planning a survival study

In a head-to-head trial about 1000 patients are needed to observe 650 failures with accrual time of 24 months, follow-up of 6 months, baseline hazard equal to 5% per year, and HR = 0.775 (error I 5%; power 90%, administrative censoring only). How does total trial duration change by varying the assumed baseline hazard and HR ?

This question was made at the PSI Wednesday challenge of February 2022, and this small package gives an answer to it.

Installation

devtools::install_github("bonorico/studydur")
library(studydur)

Basic documentation

Type ?optim_duration and alike.

Additional infos

Run output_example.R (set yes_ggplot <- TRUE) in folder out to produce the proposed plot (see gif below). See Bericht.pdf, or run Bericht.Rmd (HTML-knit in Rstudio) to have more infos about the challenge and the proposed approach.

Output

Alt Text



bonorico/PSI_Wed_Challenge_February documentation built on March 30, 2022, 4 p.m.