Table of incidence attrition results
tableIncidenceAttrition.Rd
Table of incidence attrition results
Arguments
- result
A summarised_result object. Output of summariseCohortAttrition().
- type
Type of table. Check supported types with
visOmopResults::tableType()
.- header
Columns to use as header. See options with
colnames(omopgenerics::splitAll(result))
. Variables insettingsColumn
are also allowed- groupColumn
Variables to use as group labels. Allowed columns are the same as in
header
- settingsColumn
Variables from the settings attribute to display in the table
- hide
Table columns to exclude, options are the ones described in
header
Examples
# \donttest{
cdm <- mockIncidencePrevalence(sampleSize = 1000)
cdm <- generateDenominatorCohortSet(
cdm = cdm, name = "denominator",
cohortDateRange = c(as.Date("2008-01-01"), as.Date("2018-01-01"))
)
#> ℹ Creating denominator cohorts
#> ! cohort columns will be reordered to match the expected order:
#> cohort_definition_id, subject_id, cohort_start_date, and cohort_end_date.
#> ✔ Cohorts created in 0 min and 2 sec
inc <- estimateIncidence(
cdm = cdm,
denominatorTable = "denominator",
outcomeTable = "outcome"
)
#> ℹ Getting incidence for analysis 1 of 1
#> ✔ Overall time taken: 0 mins and 1 secs
tableIncidenceAttrition(inc)
mock; cohort_1
# }