Skip to contents

A concomitant medication table with the number of subjects and the total number of treatments by medication name sorted by frequencies.

Usage

cmt02_pt_1_main(
  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, ...)

cmt02_pt_1

Format

An object of class chevron_tlg of length 1.

Arguments

adam_db

(dm) object containing the ADaM datasets

armvar

(character) variable used for column splitting

prune_0

(logical) remove 0 count rows

lbl_overall

(character) label used for overall column, if set to NULL the overall column is omitted

deco

(character) decoration with title, subtitles and main_footer content

.study

(list) with default values for the arguments of the function

...

not used.

Details

  • 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.

Functions

  • cmt02_pt_1_main(): Main TLG function

  • cmt02_pt_1_lyt(): Layout

  • cmt02_pt_1_pre(): Preprocessing

Examples

run(cmt02_pt_1, syn_test_data())
#> Other Treatment                                        A: Drug X    B: Placebo    C: Combination
#>                                                         (N=134)       (N=134)        (N=132)    
#> ————————————————————————————————————————————————————————————————————————————————————————————————
#> Total number of patients with at least one treatment   122 (91%)    123 (91.8%)    120 (90.9%)  
#> Total number of treatments                                609           622            703      
#>   medname A_1/3                                        54 (40.3%)   49 (36.6%)      69 (52.3%)  
#>   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 B_2/4                                        52 (38.8%)    55 (41%)       56 (42.4%)  
#>   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%)  
#>   medname B_3/4                                        47 (35.1%)   47 (35.1%)      52 (39.4%)