knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) options(rmarkdown.html_vignette.check_title = FALSE)
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 is defined as length of time (in months) between first and last administration date before discontinuation, for the drug of interest within line of therapy of interest, with differences in determination of discontinuation event, as described below.
'rwToT duration = Last administration date - First administration + 1'
All observations will be separated into discontinued vs censored observations. Patient was considered to have discontinued treatment at the earliest of:
The Kaplan-Meier (KM) methodology will be applied to conduct time to event rwToT analysis and generate the following statistics:
library(rwToT) library(survival) library(dplyr)
rwToT::get_treatment_rate()
fit_km <- survfit(with(aml, Surv(time,status)) ~ 1) rwToT::get_treatment_rate(fit_km ,18)
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))
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.