| t_mh_slide | R Documentation |
Summarize medical history by system organ class (SOC) and preferred term
(PT). ADSL defines both the analysis population and the treatment
denominators. ADMH records for subjects not present in ADSL are excluded,
and treatment is derived from ADSL. If ADMH also contains arm, its
non-missing values must agree with ADSL for the same subject.
t_mh_slide(adsl, admh, arm = "TRT01A", add_all_patients_col = TRUE)
adsl |
Subject-level analysis dataset. It must contain one row per
non-missing |
admh |
Medical history analysis dataset. It must contain |
arm |
Name of the treatment variable in |
add_all_patients_col |
Logical scalar indicating whether an additional
|
Counts for the overall table and each SOC include the number and percentage
of unique subjects with at least one condition and, on a separate row, the
non-unique number of condition records. PT rows contain unique subject
counts and percentages. SOCs and PTs are sorted by decreasing total unique
subject count, with labels used to break ties deterministically. Missing or
blank SOC and PT values are displayed as <Missing>.
An rtables::VTableTree object.
* Default arm variables are set to '"TRT01A"' for safety output, and '"TRT01P"' for efficacy output
The table structure follows the public MHT01 example in the TLG Catalog.
library(dplyr)
adsl <- eg_adsl %>%
dplyr::mutate(TRT01A = factor(TRT01A))
admh <- eg_admh
out <- t_mh_slide(adsl, admh)
print(out)
out_without_overall <- t_mh_slide(
adsl,
admh,
add_all_patients_col = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.