get_analysis: Real World Time on Treatment Estimation Analysis

Description Usage Arguments Value See Also Examples

View source: R/get_analysis.R

Description

This function runs ToT estimation and returns rwToT statistics for additional analysis that includes Restricted mean (RMST) and Treatment rates.

Usage

1
get_analysis(df_cohort, cohort_name, database_cutoff_date, days_in_yr = 365)

Arguments

df_cohort

A dataframe. Minimum required columns:

  • STATUS : Censor status (0 = censored, 1 = event)

  • DD : Number of days between first and last dose

  • START_DATE : First dose date

  • LAST_ACTIVITY_DATE : Last Activity date

cohort_name

Cohort Name

database_cutoff_date

Database Cutoff Date

days_in_yr

Number of days in year used for days to month conversions. Default value is 365.

Value

A list of 2

See Also

get_restricted_mean, get_treatment_rate

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#To compute rwToT estimation
tot.estimation <- get_analysis(df_cohort = rwToT_test_file_A,
                               cohort_name = "Cohort A",
                               database_cutoff_date = "2021-04-21")


# ToT estimation analysis table
tot.estimation$output_table

# ToT estimation parametric data
tot.estimation$parametric_km

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