powered by
This function is used to summarise treatments received
summariseTreatment( cohort, window, treatmentCohortName, cohortId = NULL, treatmentCohortId = NULL, strata = list(), indexDate = "cohort_start_date", censorDate = NULL, mutuallyExclusive = FALSE )
A summary of treatments stratified by cohort_name and strata_name
A cohort_table object.
Time window over which to summarise the treatments.
Name of a cohort in the cdm that contains the treatments of interest.
A cohort definition id to restrict by. If NULL, all cohorts will be included.
Cohort definition id of interest from treatmentCohortName.
A list of variables to stratify results. These variables must have been added as additional columns in the cohort table.
Name of a column that indicates the date to start the analysis.
Name of a column that indicates the date to stop the analysis, if NULL end of individuals observation is used.
Whether to include mutually exclusive treatments or not.
# \donttest{ cdm <- mockDrugUtilisation() cdm$cohort1 |> summariseTreatment( treatmentCohortName = "cohort2", window = list(c(0, 30), c(31, 365)) ) # }
Run the code above in your browser using DataLab