Skip to contents

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

Usage

lbt05_main(adam_db, arm_var = "ACTARM", lbl_overall = NULL, ...)

lbt05_pre(adam_db, ...)

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

lbt05

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

...

not used.

tlg

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

prune_0

(flag) remove 0 count rows

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

  • 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_main(): Main TLG function

  • lbt05_pre(): Preprocessing

  • lbt05_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, syn_data)
#>   Laboratory Test                            A: Drug X   B: Placebo   C: Combination
#>       Direction of Abnormality                (N=15)       (N=15)         (N=15)    
#>   ——————————————————————————————————————————————————————————————————————————————————
#>   Alanine Aminotransferase Measurement (n)      15           12             13      
#>     Low                                                                             
#>       Single, not last                       1 (6.7%)        0           1 (7.7%)   
#>       Last or replicated                         0       2 (16.7%)          0       
#>       Any Abnormality                        1 (6.7%)    2 (16.7%)       1 (7.7%)   
#>     High                                                                            
#>       Single, not last                           0        1 (8.3%)          0       
#>       Last or replicated                         0           0              0       
#>       Any Abnormality                            0        1 (8.3%)          0       
#>   C-Reactive Protein Measurement (n)            12           14             15      
#>     Low                                                                             
#>       Single, not last                           0           0           1 (6.7%)   
#>       Last or replicated                     1 (8.3%)        0              0       
#>       Any Abnormality                        1 (8.3%)        0           1 (6.7%)   
#>     High                                                                            
#>       Single, not last                       1 (8.3%)        0           1 (6.7%)   
#>       Last or replicated                         0           0              0       
#>       Any Abnormality                        1 (8.3%)        0           1 (6.7%)   
#>   Immunoglobulin A Measurement (n)              11           14             13      
#>     Low                                                                             
#>       Single, not last                           0        1 (7.1%)       1 (7.7%)   
#>       Last or replicated                         0           0              0       
#>       Any Abnormality                            0        1 (7.1%)       1 (7.7%)   
#>     High                                                                            
#>       Single, not last                           0           0              0       
#>       Last or replicated                     1 (9.1%)        0              0       
#>       Any Abnormality                        1 (9.1%)        0              0