tableIncidenceAttrition {IncidencePrevalence} | R Documentation |
Table of incidence attrition results
Description
Table of incidence attrition results
Usage
tableIncidenceAttrition(
result,
type = "gt",
header = "variable_name",
groupColumn = c("cdm_name", "outcome_cohort_name"),
settingsColumn = NULL,
hide = c("denominator_cohort_name", "estimate_name", "reason_id", "variable_level"),
style = "default"
)
Arguments
result |
A summarised_result object. Output of summariseCohortAttrition(). |
type |
Type of table. Check supported types with
|
header |
Columns to use as header. See options with
|
groupColumn |
Variables to use as group labels. Allowed columns are the
same as in |
settingsColumn |
Variables from the settings attribute to display in the table |
hide |
Table columns to exclude, options are the ones described in
|
style |
A style supported by visOmopResults::visOmopTable() |
Value
A visual table.
Examples
cdm <- mockIncidencePrevalence(sampleSize = 1000)
cdm <- generateDenominatorCohortSet(
cdm = cdm, name = "denominator",
cohortDateRange = c(as.Date("2008-01-01"), as.Date("2018-01-01"))
)
inc <- estimateIncidence(
cdm = cdm,
denominatorTable = "denominator",
outcomeTable = "outcome"
)
tableIncidenceAttrition(inc)
[Package IncidencePrevalence version 1.2.1 Index]