knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
options(rmarkdown.html_vignette.check_title = FALSE)

Introduction

Real World Time on Treatment (rwToT) has been regarded as a practical surrogate to measure benefits of immunotherapy across several tumors. From business standpoint, treatment duration is a key parameter included in Sponsor’s forecast calculations hence playing a critical role in financial planning and manufacturing supply chain planning. To meet the needs from both internal and external stakeholders, robust analytical techniques are required for real world time on treatment (rwToT) estimation, prediction, understanding of factors associated as well as evaluation of sensitivity and uncertainty in these techniques based on different types of real-world data sources. Sponsor continues to obtain access to multiple oncology real world data sets that will be used to address rwToT needs in an ongoing basis. [@Utsab: we need to add reference at the end of: protocol name and authors: Real World Time on Treatment for anti-PD-1/PD-L1 Based Regimens- Multi Data Source Analysis, author: Sheenu Chandwani, Kaushal Desai,]

rwToT Estimation

Examples

Load Package

library(rwToT)
library(survival)
library(dplyr)

Find the treatment rate using rwToT::get_treatment_rate()

fit_km <- survfit(with(aml, Surv(time,status)) ~ 1)
rwToT::get_treatment_rate(fit_km ,18)

Find the restricted mean using rwToT::get_restricted_mean()

## Get restricted mean at 36 months
rmean_36mon <- rwToT::get_restricted_mean(rwToT_test_file_A %>% 
                                            #converting DD days to months
                                            mutate(DD = (DD/365) * 12), t = 36)
rmean_36mon$mean
knitr::kable(head(rmean_36mon$parametric_km))
knitr::kable(tail(rmean_36mon$parametric_km))

Get the output table with rwToT Statistics using best-fit model rwToT::get_analysis()

```r rwToT_result <- rwToT::get_analysis(rwToT_test_file_B, "Cohort B", database_cutoff_date = "2021-01-31") knitr::kable(rwToT_result$output_table) knitr::kable(head(rwToT_result$parametric_km))



sutsabs/rwToT2 documentation built on Feb. 18, 2022, 2:30 a.m.