Creates a valid expression to generate a summary table of worst analysis indicator variable level per subject by arm.
template_shift_by_arm_by_worst(
dataname,
parentname,
arm_var = "ARM",
paramcd = "PARAMCD",
worst_flag_var = "WORS02FL",
worst_flag = "Y",
treatment_flag_var = "ONTRTFL",
treatment_flag = "Y",
aval_var = "ANRIND",
base_var = lifecycle::deprecated(),
baseline_var = "BNRIND",
na.rm = FALSE,
na_level = default_na_str(),
add_total = FALSE,
total_label = default_total_label(),
basic_table_args = teal.widgets::basic_table_args()
)
a list
of expressions to generate a table or plot object.
(character
)
analysis data used in teal module.
(character
)
parent analysis data used in teal module, usually this refers to ADSL
.
(character
)
variable names that can be used as arm_var
.
(character
)
name of the parameter code variable.
(character
)
name of the worst flag variable.
(character
)
value indicating worst analysis indicator level.
(character
)
name of the on treatment flag variable.
(character
)
name of the value indicating on treatment
records in treatment_flag_var
.
(character
)
name of the analysis reference range indicator variable.
(character
)
name of the baseline reference range indicator variable.
(logical
)
whether NA
values should be removed prior to analysis.
(string
)
used to replace all NA
or empty values
in character or factor variables in the data. Defaults to "<Missing>"
. To set a
default na_level
to apply in all modules, run set_default_na_str("new_default")
.
(logical
)
whether to include row with total number of patients.
(string
)
string to display as total column/row label if column/row is
enabled (see add_total
). Defaults to "All Patients"
. To set a new default total_label
to
apply in all modules, run set_default_total_label("new_default")
.
optional, (basic_table_args
)
object created by teal.widgets::basic_table_args()
with settings for the module table. The argument is merged with option teal.basic_table_args
and with default
module arguments (hard coded in the module body).
For more details, see the vignette: vignette("custom-basic-table-arguments", package = "teal.widgets")
.
tm_t_shift_by_arm()