Description Usage Arguments Value See Also Examples
This function runs ToT estimation and returns rwToT statistics for additional analysis that includes Restricted mean (RMST) and Treatment rates.
1 | get_analysis(df_cohort, cohort_name, database_cutoff_date, days_in_yr = 365)
|
df_cohort |
A dataframe. Minimum required columns:
|
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. |
A list of 2
output_table :A dataframe with rwToT Statistics table
parametric_km :A dataframe with rwToT KM curve data upto 48 months
get_restricted_mean
, get_treatment_rate
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.