CMT02_PT
Table 1 (Default) Concomitant Medications by Preferred Namecmt02_pt_1.Rd
A concomitant medication table with the number of subjects and the total number of treatments by medication name sorted by frequencies.
cmt02_pt_1(
adam_db,
armvar = .study$planarm,
prune_0 = TRUE,
lbl_overall = .study$lbl_overall,
deco = std_deco("CMT02_PT"),
.study = list(planarm = "ARM", lbl_overall = NULL)
)
cmt02_pt_1_lyt(
armvar = .study$planarm,
lbl_overall = .study$lbl_overall,
deco = std_deco("CMT02_PT"),
.study = list(planarm = "ARM", lbl_overall = NULL)
)
cmt02_pt_1_pre(adam_db)
(dm
) object containing the ADaM datasets
(character
) variable used for column splitting
(logical
) remove 0 count rows
(character
) label used for overall column, if set to NULL
the overall column is omitted
(character
) decoration with title
, subtitles
and main_footer
content
(list
) with default values for the arguments of the function
Data should be filtered for concomitant medication. (ATIREL == "CONCOMITANT")
.
Order by decreasing total number of patients with the specific medication.
Does not include a total column by default.
cmt02_pt_1_lyt
: cmt02_pt_1
Layout
cmt02_pt_1_pre
: cmt02_pt_1
Preprocessing
library(dm)
db <- syn_test_data() %>%
dm_zoom_to("adcm") %>%
filter(.data$ATIREL == "CONCOMITANT") %>%
dm_update_zoomed() %>%
cmt02_pt_1_pre()
cmt02_pt_1(adam_db = db)
#> Concomitant Medications by Preferred Name: {Specify Population}
#> Protocol: {{protocol}}
#>
#> —————————————————————————————————————————————————————————————————————————————————————————————————
#> Other Treatment A: Drug X B: Placebo C: Combination
#> (N=134) (N=134) (N=132)
#> —————————————————————————————————————————————————————————————————————————————————————————————————
#> Total number of patients with at least one treatment 117 (87.3%) 116 (86.6%) 116 (87.9%)
#> Total number of treatments 415 414 460
#> medname C_2/2 52 (38.8%) 58 (43.3%) 60 (45.5%)
#> medname B_1/4 52 (38.8%) 57 (42.5%) 59 (44.7%)
#> medname A_2/3 53 (39.6%) 50 (37.3%) 56 (42.4%)
#> medname C_1/2 51 (38.1%) 50 (37.3%) 56 (42.4%)
#> medname B_4/4 50 (37.3%) 45 (33.6%) 55 (41.7%)
#> medname A_3/3 45 (33.6%) 54 (40.3%) 48 (36.4%)
#> —————————————————————————————————————————————————————————————————————————————————————————————————
#>
#> Treatments are coded from the WHODrug Global B3 Format dictionary {version}. Multiple uses of a specific medication for a patient were counted once in the frequency for the medication. For frequency counts in "Total number of treatments", multiple uses of the same medication for a patient were counted separately. Standard footnote defining medications included in table (e.g., includes concomitant medications used at any time from first dose of study drug through 7 days after last dose of study drug).
cmt02_pt_1_lyt(
armvar = "ACTARM",
lbl_overall = NULL
)
#> A Pre-data Table Layout
#>
#> Column-Split Structure:
#> ACTARM (lvls)
#>
#> Row-Split Structure:
#> CMDECOD (** analysis **)
#>
syn_test_data() %>%
cmt02_pt_1_pre()
#> ── Metadata ────────────────────────────────────────────────────────────────────
#> Tables: `adsl`, `adae`, `adaette`, `adcm`, `addv`, … (15 total)
#> Columns: 846
#> Primary keys: 2
#> Foreign keys: 1