DTHT01
Table 1 (Default) Death Table.
dtht01_1.Rd
A description of the causes of death optionally with the breakdown of the
OTHER
category and/or post-study reporting of death.
Usage
dtht01_1_main(
adam_db,
arm_var = "ACTARM",
time_since_last_dose = FALSE,
other_category = FALSE,
lbl_overall = NULL,
deco = std_deco("DTHT01"),
...
)
dtht01_1_lyt(arm_var, lbl_overall, other_category, deco)
dtht01_1_opt_lyt(arm_var, lbl_overall, deco)
dtht01_1_pre(adam_db, ...)
dtht01_1_post(tlg, prune_0 = TRUE, ...)
dtht01_1
Arguments
- adam_db
(
dm
) object containing theADaM
datasets- arm_var
(
character
) variable used for column splitting- time_since_last_dose
(
logical
) should the time to event information be displayed.- other_category
(
logical
) should the breakdown of theOTHER
category be displayed.- lbl_overall
(
character
) label used for overall column, if set toNULL
the overall column is omitted- deco
(
character
) decoration withtitle
,subtitles
andmain_footer
content- ...
not used.
- tlg
(
TableTree
,Listing
orggplot
) object typically produced by amain
function.- prune_0
(
logical
) remove 0 count rows
Details
Numbers represent absolute numbers of subjects and fraction of
N
, or absolute numbers when specified.Remove zero-count rows unless overridden with
prune_0 = FALSE
.Does not include a total column by default.
Functions
dtht01_1_main()
: Main TLG functiondtht01_1_lyt()
: Layoutdtht01_1_opt_lyt()
: Optional Layoutdtht01_1_pre()
: Preprocessingdtht01_1_post()
: Postprocessing
Note
adam_db
object must contain anadsl
table with the columns"DTHFL"
,"DTHCAT"
as well asLDDTHGR1
iftime_since_last_dose
isTRUE
.
Examples
db <- syn_data
run(dtht01_1, db)
#> A: Drug X B: Placebo C: Combination
#> (N=134) (N=134) (N=132)
#> —————————————————————————————————————————————————————————————————
#> Total number of deaths 25 (18.7%) 23 (17.2%) 22 (16.7%)
#> Primary cause of death
#> n 25 23 22
#> ADVERSE EVENT 9 (36.0%) 7 (30.4%) 10 (45.5%)
#> PROGRESSIVE DISEASE 8 (32.0%) 6 (26.1%) 6 (27.3%)
#> OTHER 8 (32.0%) 10 (43.5%) 6 (27.3%)
run(dtht01_1, db, other_category = TRUE, time_since_last_dose = TRUE)
#> A: Drug X B: Placebo C: Combination
#> (N=134) (N=134) (N=132)
#> ————————————————————————————————————————————————————————————————————————————————————————————————————
#> Total number of deaths 25 (18.7%) 23 (17.2%) 22 (16.7%)
#> Primary cause of death
#> n 25 23 22
#> ADVERSE EVENT 9 (36.0%) 7 (30.4%) 10 (45.5%)
#> PROGRESSIVE DISEASE 8 (32.0%) 6 (26.1%) 6 (27.3%)
#> OTHER 8 (32.0%) 10 (43.5%) 6 (27.3%)
#> LOST TO FOLLOW UP 2 (8.0%) 2 (8.7%) 2 (9.1%)
#> MISSING 2 (8.0%) 3 (13.0%) 2 (9.1%)
#> Post-study reporting of death 1 (4.0%) 2 (8.7%) 1 (4.5%)
#> SUICIDE 2 (8.0%) 2 (8.7%) 1 (4.5%)
#> UNKNOWN 1 (4.0%) 1 (4.3%) 0
#> Days from last drug administration
#> n 25 23 22
#> <=30 14 (56.0%) 11 (47.8%) 14 (63.6%)
#> >30 11 (44.0%) 12 (52.2%) 8 (36.4%)
#> Primary cause by days from last study drug administration
#> <=30
#> n 14 11 14
#> ADVERSE EVENT 4 (28.6%) 2 (18.2%) 6 (42.9%)
#> PROGRESSIVE DISEASE 6 (42.9%) 3 (27.3%) 4 (28.6%)
#> OTHER 4 (28.6%) 6 (54.5%) 4 (28.6%)
#> >30
#> n 11 12 8
#> ADVERSE EVENT 5 (45.5%) 5 (41.7%) 4 (50.0%)
#> PROGRESSIVE DISEASE 2 (18.2%) 3 (25.0%) 2 (25.0%)
#> OTHER 4 (36.4%) 4 (33.3%) 2 (25.0%)