Skip to contents

The LBT04 table provides an overview of laboratory abnormalities not present at baseline.

Usage

lbt04_main(
  adam_db,
  arm_var = "ACTARM",
  lbl_overall = NULL,
  analysis_abn_var = "ANRIND",
  baseline_abn_var = "BNRIND",
  row_split_var = "PARCAT1",
  page_var = tail(row_split_var, 1L),
  ...
)

lbt04_pre(adam_db, ...)

lbt04_post(tlg, ...)

lbt04

Format

An object of class chevron_t of length 1.

Arguments

adam_db

(list of data.frames) 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

analysis_abn_var

(string) column describing anomaly magnitude

baseline_abn_var

(string) column describing anomaly at baseline.

row_split_var

(character) additional row split variables.

page_var

(string) variable name prior to which the row split is by page.

...

not used.

tlg

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

Value

the main function returns an rtables object.

the preprocessing function returns a list of data.frame.

the postprocessing function returns an rtables object or an ElementaryTable (null report).

Details

  • Only count LOW or HIGH values.

  • Lab test results with missing analysis_abn_var values are excluded.

  • Split columns by arm, typically ACTARM.

  • Does not include a total column by default.

Functions

  • lbt04_main(): Main TLG function

  • lbt04_pre(): Preprocessing

  • lbt04_post(): Postprocessing

Note

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

Examples

run(lbt04, syn_data)
#>   Laboratory Test                           A: Drug X      B: Placebo    C: Combination
#>       Direction of Abnormality               (N=134)        (N=134)         (N=132)    
#>   —————————————————————————————————————————————————————————————————————————————————————
#>   CHEMISTRY                                                                            
#>     Alanine Aminotransferase Measurement                                               
#>       Low                                  7/45 (15.6%)   6/51 (11.8%)    4/61 (6.6%)  
#>       High                                 4/45 (8.9%)    6/45 (13.3%)    4/62 (6.5%)  
#>     C-Reactive Protein Measurement                                                     
#>       Low                                  6/55 (10.9%)   5/61 (8.2%)     6/51 (11.8%) 
#>       High                                 6/53 (11.3%)   7/55 (12.7%)    2/48 (4.2%)  
#>     Immunoglobulin A Measurement                                                       
#>       Low                                  4/43 (9.3%)    9/51 (17.6%)    8/52 (15.4%) 
#>       High                                 7/42 (16.7%)   7/49 (14.3%)    5/52 (9.6%)  
#>   COAGULATION                                                                          
#>     Alanine Aminotransferase Measurement                                               
#>       Low                                  4/54 (7.4%)    5/53 (9.4%)     4/48 (8.3%)  
#>       High                                 9/53 (17.0%)   7/50 (14.0%)    6/48 (12.5%) 
#>     C-Reactive Protein Measurement                                                     
#>       Low                                  7/56 (12.5%)   5/48 (10.4%)    5/50 (10.0%) 
#>       High                                 8/52 (15.4%)   3/46 (6.5%)     5/46 (10.9%) 
#>     Immunoglobulin A Measurement                                                       
#>       Low                                  8/50 (16.0%)   8/57 (14.0%)    2/54 (3.7%)  
#>       High                                 6/48 (12.5%)   8/65 (12.3%)    2/52 (3.8%)  
#>   HEMATOLOGY                                                                           
#>     Alanine Aminotransferase Measurement                                               
#>       Low                                  3/48 (6.2%)    4/46 (8.7%)     6/59 (10.2%) 
#>       High                                 5/47 (10.6%)   7/45 (15.6%)    8/55 (14.5%) 
#>     C-Reactive Protein Measurement                                                     
#>       Low                                  6/49 (12.2%)   6/45 (13.3%)   11/57 (19.3%) 
#>       High                                 3/44 (6.8%)    3/46 (6.5%)     6/53 (11.3%) 
#>     Immunoglobulin A Measurement                                                       
#>       Low                                  5/56 (8.9%)    8/53 (15.1%)    9/50 (18.0%) 
#>       High                                 7/57 (12.3%)   4/56 (7.1%)    10/52 (19.2%)