Creates a valid expression to generate a binary outcome analysis.
template_binary_outcome(
dataname,
parentname,
arm_var,
paramcd,
ref_arm = NULL,
comp_arm = NULL,
compare_arm = FALSE,
combine_comp_arms = FALSE,
aval_var = "AVALC",
show_rsp_cat = TRUE,
responder_val = c("Complete Response (CR)", "Partial Response (PR)"),
responder_val_levels = responder_val,
control = list(global = list(method = "waldcc", conf_level = 0.95), unstrat =
list(method_ci = "waldcc", method_test = "schouten", odds = TRUE), strat =
list(method_ci = "cmh", method_test = "cmh", strat = NULL)),
add_total = FALSE,
total_label = default_total_label(),
na_level = default_na_str(),
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
)
response parameter value to use in the table title.
(character
)
the level of reference arm in case of arm comparison.
(character
)
the level of comparison arm in case of arm comparison.
(logical
)
triggers the comparison between study arms.
(logical
)
triggers the combination of comparison arms.
(character
)
name of the analysis value variable.
(logical
)
display the multinomial response estimations.
(character
)
the short label for observations to
translate AVALC
into responder/non-responder.
(character
)
the levels of responses that will be shown in the multinomial
response estimations.
(list
)
list of settings for the analysis.
(logical
)
whether to include column 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")
.
(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")
.
(basic_table_args
) optional
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_binary_outcome()