LBT05
Table 1 (Default) Laboratory Abnormalities with Single and Replicated Marked.
Source: R/lbt05.R
lbt05.Rd
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
Arguments
- adam_db
(
list
ofdata.frames
) object containing theADaM
datasets- arm_var
(
string
) variable used for column splitting- lbl_overall
(
string
) label used for overall column, if set toNULL
the overall column is omitted- ...
not used.
- tlg
(
TableTree
,Listing
orggplot
) object typically produced by amain
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
.
Note
adam_db
object must contain anadlb
table with columns"ONTRTFL"
,"PARCAT2"
,"PARAM"
,"ANRIND"
,"AVALCAT1"
, and column specified byarm_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