tm_t_shift_by_arm_by_worst {teal.modules.clinical} | R Documentation |
teal Module: Shift by Arm by Worst Analysis Indicator Level
Description
This module produces a summary table of worst analysis indicator variable level per subject by arm.
Usage
tm_t_shift_by_arm_by_worst(
label,
dataname,
parentname = ifelse(inherits(arm_var, "data_extract_spec"),
teal.transform::datanames_input(arm_var), "ADSL"),
arm_var,
paramcd,
aval_var,
base_var = lifecycle::deprecated(),
baseline_var,
worst_flag_var,
worst_flag,
treatment_flag_var = teal.transform::choices_selected(choices =
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 |
( |
aval_var |
( |
base_var |
|
baseline_var |
( |
worst_flag_var |
( |
worst_flag |
( |
treatment_flag_var |
( |
treatment_flag |
( |
useNA |
( |
na_level |
( |
add_total |
( |
total_label |
( |
pre_output |
( |
post_output |
( |
basic_table_args |
( |
Value
a teal_module
object.
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_by_worst(
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 = "ECGINTP"
),
worst_flag_var = choices_selected(
variable_choices(ADEG, c("WORS02FL", "WORS01FL")),
selected = "WORS02FL"
),
worst_flag = choices_selected(
value_choices(ADEG, "WORS02FL"),
selected = "Y", fixed = TRUE
),
aval_var = choices_selected(
variable_choices(ADEG, c("AVALC", "ANRIND")),
selected = "AVALC"
),
baseline_var = choices_selected(
variable_choices(ADEG, c("BASEC", "BNRIND")),
selected = "BASEC"
),
useNA = "ifany"
)
)
)
if (interactive()) {
shinyApp(app$ui, app$server)
}