tableProportionOfPatientsCovered {DrugUtilisation} | R Documentation |
Create a table with proportion of patients covered results
Description
Create a table with proportion of patients covered results
Usage
tableProportionOfPatientsCovered(
result,
header = c("cohort_name", strataColumns(result)),
groupColumn = "cdm_name",
type = "gt",
hide = c("variable_name", "variable_level", "cohort_table_name"),
.options = list()
)
Arguments
result |
A summarised_result object. |
header |
Columns to use as header. See options with
|
groupColumn |
Columns to group by. See options with
|
type |
Type of table. Check supported types with
|
hide |
Columns to hide from the visualisation. See options with
|
.options |
A named list with additional formatting options.
|
Value
A table with a formatted version of summariseProportionOfPatientsCovered() results.
Examples
library(DrugUtilisation)
cdm <- mockDrugUtilisation()
cdm <- generateDrugUtilisationCohortSet(cdm = cdm,
name = "my_cohort",
conceptSet = list(drug_of_interest = c(1503297, 1503327)))
result <- cdm$my_cohort |>
summariseProportionOfPatientsCovered(followUpDays = 365)
tableProportionOfPatientsCovered(result)
[Package DrugUtilisation version 1.0.4 Index]