tableDoseCoverage {DrugUtilisation} | R Documentation |
Format a dose_coverage object into a visual table.
Description
Usage
tableDoseCoverage(
result,
header = c("variable", "estimate"),
splitStrata = TRUE,
ingridientName = TRUE,
cdmName = TRUE,
groupColumn = NULL,
type = "gt",
formatEstimateName = c(`N (%)` = "<count_missing> (<percentage_missing> %)", N =
"<count>", `Mean (SD)` = "<mean> (<sd>)", `Median (Q25 - Q75)` =
"<median> (<q25> - <q75>)"),
.options = list()
)
Arguments
result |
A summarised_result object with results from summariseDoseCoverage(). |
header |
A vector containing which elements should go into the header
in order. Allowed are: |
splitStrata |
If TRUE strata columns will be split. |
ingridientName |
If TRUE cohort names will be displayed. |
cdmName |
If TRUE database names will be displayed. |
groupColumn |
Column to use as group labels. |
type |
Type of desired formatted table, possibilities: "gt", "flextable", "tibble". |
formatEstimateName |
Named list of estimate name's to join, sorted by computation order. Indicate estimate_name's between <...>. |
.options |
Named list with additional formatting options. DrugUtilisation::defaultTableOptions() shows allowed arguments and their default values. |
Value
A table with a formatted version of summariseDrugCoverage() results.
Examples
library(DrugUtilisation)
cdm <- mockDrugUtilisation()
result <- summariseDoseCoverage(cdm, 1125315)
tableDoseCoverage(result)
[Package DrugUtilisation version 0.7.0 Index]