Creates a valid expression to generate a logistic regression table.
template_logistic(
dataname,
arm_var,
aval_var,
label_paramcd,
cov_var,
interaction_var,
ref_arm,
comp_arm,
topleft = "Logistic Regression",
conf_level = 0.95,
combine_comp_arms = FALSE,
responder_val = c("CR", "PR"),
at = NULL,
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)
variable names that can be used as arm_var. To fit a logistic model with no
arm/treatment variable, set to NULL.
(character)
name of the analysis value variable.
(character)
label of response parameter value to print in the table title.
(character)
names of the covariates variables.
(character)
names of the variables that can be used for interaction variable selection.
(character)
the level of reference arm in case of arm comparison.
(character)
the level of comparison arm in case of arm comparison.
(character)
text to use as top-left annotation in the table.
(numeric)
value for the confidence level within the range of (0, 1).
(logical)
triggers the combination of comparison arms.
(character)
values of the responder variable corresponding with a successful response.
(numeric or NULL)
optional values for the interaction variable. Otherwise the median is used.
(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_logistic()