addDrugUtilisation()
for efficiency.To add a new column with the exposed time. To add multiple columns use
addDrugUtilisation()
for efficiency.
addExposedTime(
cohort,
conceptSet,
gapEra,
indexDate = "cohort_start_date",
censorDate = "cohort_end_date",
restrictIncident = TRUE,
nameStyle = "days_exposed_{concept_name}",
name = NULL
)
The same cohort with the added column.
A cohort_table object.
List of concepts to be included.
Number of days between two continuous exposures to be considered in the same era.
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 only incident prescriptions in the analysis. If FALSE all prescriptions that overlap with the study period will be included.
Character string to specify the nameStyle of the new columns.
Name of the new computed cohort table, if NULL a temporary table will be created.