Create a table with proportion of patients covered results
Source:R/tables.R
tableProportionOfPatientsCovered.Rd
Usage
tableProportionOfPatientsCovered(
result,
header = c("cohort_name", strataColumns(result)),
groupColumn = "cdm_name",
type = "gt",
hide = c("variable_name", "variable_level")
)
Arguments
- result
A summarised_result object.
- header
Columns to use as header. See options with
availableTableColumns(result)
.- groupColumn
Columns to group by. See options with
availableTableColumns(result)
.- type
Type of table. Check supported types with
visOmopResults::tableType()
.- hide
Columns to hide from the visualisation. See options with
availableTableColumns(result)
.
Examples
# \donttest{
library(DrugUtilisation)
cdm <- mockDrugUtilisation()
cdm <- generateDrugUtilisationCohortSet(
cdm = cdm,
name = "my_cohort",
conceptSet = list(drug_of_interest = c(1503297, 1503327))
)
#> ℹ Subsetting drug_exposure table
#> ℹ Checking whether any record needs to be dropped.
#> ℹ Collapsing overlaping records.
#> ℹ Collapsing records with gapEra = 1 days.
result <- cdm$my_cohort |>
summariseProportionOfPatientsCovered(followUpDays = 365)
#> Warning: No records found in cohort table
tableProportionOfPatientsCovered(result)
#> Warning: There are no results with `result_type =
#> summarise_proportion_of_patients_covered`
CDMConnector::cdmDisconnect(cdm = cdm)
# }