The documentation to this function lists all the arguments in teal module templates that are used repeatedly to express an analysis.
a list
of expressions to generate a table or plot object.
(logical
)
whether to include column with total number of patients.
(character
)
analysis data used in teal module.
(character
)
variable names that can be used as arm_var
.
(character
)
name of time relation of medication variable.
(character
)
name of the analysis value unit variable.
(character
)
name of the analysis value variable.
(character
)
name of the variable for baseline values of the analysis variable.
(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")
.
(character
)
variable names used to split the summary by rows.
(character
)
name of standardized medication name variable.
(character
)
name of indication variable.
(character
)
name of study relative day of start of medication variable.
(character
)
name of the censoring variable.
(logical
)
triggers the combination of comparison arms.
(logical
)
triggers the comparison between study arms.
(character
)
the level of comparison arm in case of arm comparison.
(numeric
)
value for the confidence level within the range of (0, 1).
(list
)
list of settings for the analysis.
(character
)
names of the covariates variables.
(character
)
analysis data used in teal module.
(character
)
chooses how percentages are calculated. With option N
, the reference
population from the column total is used as the denominator. With option n
, the number of non-missing
records in this row and column intersection is used as the denominator. If omit
is chosen, then the
percentage is omitted.
(logical
)
whether to drop unused levels of arm_var
. If TRUE
, arm_var
levels are
set to those used in the dataname
dataset. If FALSE
, arm_var
levels are set to those used in the
parentname
dataset. If dataname
and parentname
are the same, then drop_arm_levels
is set to TRUE
and
user input for this parameter is ignored.
(character
)
type of event that is summarized (e.g. adverse event, treatment). Default
is "event"
.
(numeric
)
font size value.
(ggplot2_args
) optional
object created by teal.widgets::ggplot2_args()
with settings
for the module plot. The argument is merged with option teal.ggplot2_args
and with default module arguments
(hard coded in the module body).
For more details, see the vignette: vignette("custom-ggplot2-arguments", package = "teal.widgets")
.
(character
)
name of the variable with high level term for events.
(character
)
the variable name for subject id.
(logical
)
whether an interaction term should be included in the model.
(string
)
label of the hlt
variable from dataname
. The label will be extracted from the
module.
(string
)
label of the llt
variable from dataname
. The label will be extracted from the
module.
(character
)
name of the variable with low level term for events.
(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 NA
values should be removed prior to analysis.
(character
)
names of statistics to display for numeric summary variables. Available
statistics are n
, mean_sd
, mean_ci
, median
, median_ci
, quantiles
, range
, and geom_mean
.
(character
)
name of the parameter code variable.
(character
)
parent analysis data used in teal module, usually this refers to ADSL
.
(character
)
patient ID.
(number
)
threshold to use for trimming table using as criteria difference in
rates between any two columns.
(number
)
threshold to use for trimming table using event incidence rate in any column.
(character
)
the level of reference arm in case of arm comparison.
(character
)
how to sort the final table. Default option freq_desc
sorts
on column sort_freq_col
by decreasing number of patients with event. Alternative option alpha
sorts events
alphabetically.
(character
)
names of the variables for stratified analysis.
(character
)
with variable names that can be used as subgroups.
(character
)
names of the variables that should be summarized.
(character
)
time points that can be used in tern::surv_timepoint()
.
(character
)
name of the variable representing time units.
(character
)
title of the output.
(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")
.
(character
)
name of the value indicating on treatment
records in treatment_flag_var
.
(character
)
name of the on treatment flag variable.
(character
)
whether missing data (NA
) should be displayed as a level.
(named character
) optional
variable labels for relabeling the analysis variables.
(character
)
variable names that can be used as visit
variable. Must be a factor in
dataname
.
(character
)
value indicating worst grade.
(character
)
name of the worst flag variable.
Although this function just returns NULL
it has two uses, for
the teal module users it provides a documentation of arguments that are
commonly and consistently used in the framework. For the developer it adds a
single reference point to import the roxygen
argument description with:
@inheritParams template_arguments