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
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- 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
orggplot
) object typically produced by amain
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.
Note
adam_db
object must contain anadlb
table with columns"PARCAT1"
,"PARCAT2"
,"PARAM"
,"ANRIND"
, and column specified byarm_var
.
Examples
run(lbt04, syn_data)
#> Laboratory Test A: Drug X B: Placebo C: Combination
#> Direction of Abnormality (N=15) (N=15) (N=15)
#> ———————————————————————————————————————————————————————————————————————————————————
#> CHEMISTRY
#> Alanine Aminotransferase Measurement
#> Low 1/7 (14.3%) 1/3 (33.3%) 0/8
#> High 2/7 (28.6%) 0/2 1/9 (11.1%)
#> C-Reactive Protein Measurement
#> Low 0/8 0/2 2/7 (28.6%)
#> High 0/8 0/3 0/7
#> Immunoglobulin A Measurement
#> Low 2/5 (40.0%) 1/8 (12.5%) 1/6 (16.7%)
#> High 2/5 (40.0%) 1/9 (11.1%) 0/6
#> COAGULATION
#> Alanine Aminotransferase Measurement
#> Low 0/5 1/5 (20.0%) 0/5
#> High 0/6 1/6 (16.7%) 1/5 (20.0%)
#> C-Reactive Protein Measurement
#> Low 1/6 (16.7%) 0/5 1/4 (25.0%)
#> High 1/5 (20.0%) 1/6 (16.7%) 0/3
#> Immunoglobulin A Measurement
#> Low 0/7 0/9 0/7
#> High 1/7 (14.3%) 0/10 0/6
#> HEMATOLOGY
#> Alanine Aminotransferase Measurement
#> Low 1/5 (20.0%) 1/5 (20.0%) 0/4
#> High 0/5 0/4 0/4
#> C-Reactive Protein Measurement
#> Low 1/4 (25.0%) 0/2 3/9 (33.3%)
#> High 0/4 0/5 0/9
#> Immunoglobulin A Measurement
#> Low 0/2 0/3 2/8 (25.0%)
#> High 0/4 1/4 (25.0%) 0/7