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=134)     (N=134)        (N=132)    
#>   ——————————————————————————————————————————————————————————————————————————————————
#>   Alanine Aminotransferase Measurement (n)      119         122            111      
#>     Low                                                                             
#>       Single, not last                       1 (0.8%)     2 (1.6%)       2 (1.8%)   
#>       Last or replicated                     2 (1.7%)     7 (5.7%)          0       
#>       Any Abnormality                        3 (2.5%)     9 (7.4%)       2 (1.8%)   
#>     High                                                                            
#>       Single, not last                       4 (3.4%)     4 (3.3%)       1 (0.9%)   
#>       Last or replicated                     2 (1.7%)     5 (4.1%)       4 (3.6%)   
#>       Any Abnormality                        6 (5.0%)     9 (7.4%)       5 (4.5%)   
#>   C-Reactive Protein Measurement (n)            124         114            114      
#>     Low                                                                             
#>       Single, not last                       1 (0.8%)        0           3 (2.6%)   
#>       Last or replicated                     5 (4.0%)     6 (5.3%)       2 (1.8%)   
#>       Any Abnormality                        6 (4.8%)     6 (5.3%)       5 (4.4%)   
#>     High                                                                            
#>       Single, not last                       2 (1.6%)     1 (0.9%)       2 (1.8%)   
#>       Last or replicated                     5 (4.0%)     5 (4.4%)       5 (4.4%)   
#>       Any Abnormality                        7 (5.6%)     6 (5.3%)       7 (6.1%)   
#>   Immunoglobulin A Measurement (n)              112         116            113      
#>     Low                                                                             
#>       Single, not last                       1 (0.9%)     3 (2.6%)       4 (3.5%)   
#>       Last or replicated                     4 (3.6%)     3 (2.6%)       2 (1.8%)   
#>       Any Abnormality                        5 (4.5%)     6 (5.2%)       6 (5.3%)   
#>     High                                                                            
#>       Single, not last                       1 (0.9%)     1 (0.9%)       2 (1.8%)   
#>       Last or replicated                     1 (0.9%)     5 (4.3%)       3 (2.7%)   
#>       Any Abnormality                        2 (1.8%)     6 (5.2%)       5 (4.4%)