summariseConceptCounts(
cdm,
conceptId,
countBy = c("record", "person"),
concept = TRUE,
interval = "overall",
sex = FALSE,
ageGroup = NULL,
dateRange = NULL
)
A summarised_result object with results overall and, if specified, by strata.
A cdm object
List of concept IDs to summarise.
Either "record" for record-level counts or "person" for person-level counts
TRUE or FALSE. If TRUE code use will be summarised by concept.
Time interval to stratify by. It can either be "years", "quarters", "months" or "overall".
TRUE or FALSE. If TRUE code use will be summarised by sex.
A list of ageGroup vectors of length two. Code use will be thus summarised by age groups.
A vector of two dates defining the desired study period.
Only the start_date
column of the OMOP table is checked to ensure it falls within this range.
If dateRange
is NULL
, no restriction is applied.