Creates a valid expression to generate a multi-variable Cox regression analysis.
template_coxreg_m(
dataname,
cov_var,
arm_var,
cnsr_var,
aval_var,
ref_arm,
comp_arm,
paramcd,
at = list(),
strata_var = NULL,
combine_comp_arms = FALSE,
control = control_coxreg(),
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
)
names of the covariates variables.
(character
)
variable names that can be used as arm_var
.
(character
)
name of the censoring variable.
(character
)
name of the analysis value variable.
(character
)
the level of reference arm in case of arm comparison.
(character
)
the level of comparison arm in case of arm comparison.
(character
)
name of the parameter code variable.
(list
of numeric
)
when the candidate covariate is a numeric
type variable, use at
to specify the value of the covariate at which the effect should be estimated.
(character
)
names of the variables for stratified analysis.
(logical
)
triggers the combination of comparison arms.
(list
)
list of settings for the analysis (see tern::control_coxreg()
).
(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")
.
template_coxreg_u()
, tm_t_coxreg()