Skip to contents

LBT05 Table 1 (Default) Laboratory Abnormalities with Single and Replicated Marked.

Usage

lbt05_1_main(
  adam_db,
  arm_var = "ACTARM",
  lbl_overall = NULL,
  lbl_param = "Laboratory Test",
  lbl_anrind = "Direction of Abnormality",
  deco = std_deco("LBT05"),
  ...
)

lbt05_1_lyt(arm_var, lbl_overall, lbl_param, lbl_anrind, map, deco)

lbt05_1_pre(adam_db, arm_var = "ACTARM", ...)

lbt05_1_check(adam_db, req_tables, arm_var)

lbt05_1_post(tlg, prune_0 = FALSE, ...)

lbt05_1

Format

An object of class chevron_t of length 1.

Arguments

adam_db

(dm) object containing the ADaM datasets

arm_var

(string) variable used for column splitting

lbl_overall

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

lbl_param

(string) label of the PARAM variable.

lbl_anrind

(string) label of the ANRIND variable.

deco

(character) decoration with title, subtitles and main_footer content

...

not used.

map

(data.frame) mapping of PARAMs to directions of abnormality.

req_tables

(character) names of the required tables.

tlg

(TableTree, Listing or ggplot) object typically produced by a main function.

prune_0

(flag) remove 0 count rows

Details

  • Does not remove rows with zero counts by default.

  • Lab test results with missing AVAL values are excluded.

  • Split columns by arm, typically ACTARM.

Functions

  • lbt05_1_main(): Main TLG function

  • lbt05_1_lyt(): Layout

  • lbt05_1_pre(): Preprocessing

  • lbt05_1_check(): Checks

  • lbt05_1_post(): Postprocessing

Note

  • adam_db object must contain an adlb table with columns "ONTRTFL", "PARCAT2", "PARAM", "ANRIND", "AVALCAT1", and column specified by arm_var.

Examples

run(lbt05_1, syn_data)
#>   Laboratory Test                            A: Drug X   B: Placebo   C: Combination
#>       Direction of Abnormality                (N=134)     (N=134)        (N=132)    
#>   ——————————————————————————————————————————————————————————————————————————————————
#>   Alanine Aminotransferase Measurement (n)      129         128            127      
#>     Low                                                                             
#>       Single, not last                       1 (0.8%)     2 (1.6%)       2 (1.6%)   
#>       Last or replicated                     4 (3.1%)    11 (8.6%)       3 (2.4%)   
#>       Any Abnormality                        5 (3.9%)    13 (10.2%)      5 (3.9%)   
#>     High                                                                            
#>       Single, not last                       4 (3.1%)     4 (3.1%)       1 (0.8%)   
#>       Last or replicated                     5 (3.9%)     8 (6.2%)       6 (4.7%)   
#>       Any Abnormality                        9 (7.0%)    12 (9.4%)       7 (5.5%)   
#>   C-Reactive Protein Measurement (n)            128         123            123      
#>     Low                                                                             
#>       Single, not last                       1 (0.8%)        0           3 (2.4%)   
#>       Last or replicated                     11 (8.6%)    7 (5.7%)       4 (3.3%)   
#>       Any Abnormality                        12 (9.4%)    7 (5.7%)       7 (5.7%)   
#>     High                                                                            
#>       Single, not last                       2 (1.6%)     1 (0.8%)       2 (1.6%)   
#>       Last or replicated                     9 (7.0%)    10 (8.1%)      11 (8.9%)   
#>       Any Abnormality                        11 (8.6%)   11 (8.9%)      13 (10.6%)  
#>   Immunoglobulin A Measurement (n)              126         125            119      
#>     Low                                                                             
#>       Single, not last                       1 (0.8%)     3 (2.4%)       4 (3.4%)   
#>       Last or replicated                     6 (4.8%)     6 (4.8%)       7 (5.9%)   
#>       Any Abnormality                        7 (5.6%)     9 (7.2%)      11 (9.2%)   
#>     High                                                                            
#>       Single, not last                       1 (0.8%)     1 (0.8%)       2 (1.7%)   
#>       Last or replicated                     3 (2.4%)     8 (6.4%)       4 (3.4%)   
#>       Any Abnormality                        4 (3.2%)     9 (7.2%)       6 (5.0%)