tm_t_shift_by_arm {teal.modules.clinical} | R Documentation |
teal Module: Shift by Arm
Description
This module produces a summary table of analysis indicator levels by arm.
Usage
tm_t_shift_by_arm(
label,
dataname,
parentname = ifelse(inherits(arm_var, "data_extract_spec"),
teal.transform::datanames_input(arm_var), "ADSL"),
arm_var,
paramcd,
visit_var,
aval_var,
base_var = lifecycle::deprecated(),
baseline_var,
treatment_flag_var =
teal.transform::choices_selected(teal.transform::variable_choices(dataname, subset =
"ONTRTFL"), selected = "ONTRTFL"),
treatment_flag = teal.transform::choices_selected("Y"),
useNA = c("ifany", "no"),
na_level = default_na_str(),
add_total = FALSE,
total_label = default_total_label(),
pre_output = NULL,
post_output = NULL,
basic_table_args = teal.widgets::basic_table_args()
)
Arguments
label |
( |
dataname |
( |
parentname |
( |
arm_var |
( |
paramcd |
( |
visit_var |
( |
aval_var |
( |
base_var |
|
baseline_var |
( |
treatment_flag_var |
( |
treatment_flag |
( |
useNA |
( |
na_level |
( |
add_total |
( |
total_label |
( |
pre_output |
( |
post_output |
( |
basic_table_args |
( |
Value
a teal_module
object.
See Also
The TLG Catalog where additional example apps implementing this module can be found.
Examples
ADSL <- tmc_ex_adsl
ADEG <- tmc_ex_adeg
app <- init(
data = cdisc_data(
ADSL = ADSL,
ADEG = ADEG,
code = "
ADSL <- tmc_ex_adsl
ADEG <- tmc_ex_adeg
"
),
modules = modules(
tm_t_shift_by_arm(
label = "Shift by Arm Table",
dataname = "ADEG",
arm_var = choices_selected(
variable_choices(ADSL, subset = c("ARM", "ARMCD")),
selected = "ARM"
),
paramcd = choices_selected(
value_choices(ADEG, "PARAMCD"),
selected = "HR"
),
visit_var = choices_selected(
value_choices(ADEG, "AVISIT"),
selected = "POST-BASELINE MINIMUM"
),
aval_var = choices_selected(
variable_choices(ADEG, subset = "ANRIND"),
selected = "ANRIND", fixed = TRUE
),
baseline_var = choices_selected(
variable_choices(ADEG, subset = "BNRIND"),
selected = "BNRIND", fixed = TRUE
),
useNA = "ifany"
)
)
)
if (interactive()) {
shinyApp(app$ui, app$server)
}