- lyt
(PreDataTableLayouts
)
layout that analyses will be added to.
- var
(string
)
single variable name that is passed by rtables
when requested
by a statistics function.
- flag_variables
(character
)
a vector specifying the names of logical
variables from analysis dataset
used for counting the number of unique identifiers.
- flag_labels
(character
)
vector of labels to use for flag variables. If any labels are also specified via
the .labels
parameter, the .labels
values will take precedence and replace these labels.
- var_labels
(character
)
variable labels.
- show_labels
(string
)
label visibility: one of "default", "visible" and "hidden".
- riskdiff
(flag
)
whether a risk difference column is present. When set to TRUE
, add_riskdiff()
must be
used as split_fun
in the prior column split of the table layout, specifying which columns should be compared.
See stat_propdiff_ci()
for details on risk difference calculation.
- na_str
(string
)
string used to replace all NA
or empty values in the output.
- nested
(flag
)
whether this layout instruction should be applied within the existing layout structure _if
possible (TRUE
, the default) or as a new top-level element (FALSE
). Ignored if it would nest a split.
underneath analyses, which is not allowed.
- ...
additional arguments for the lower level functions.
- table_names
(character
)
this can be customized in the case that the same vars
are analyzed multiple
times, to avoid warnings from rtables
.
- .stats
(character
)
statistics to select for the table.
Options are: 'n', 'count', 'count_fraction', 'count_fraction_fixed_dp', 'n_blq'
- .stat_names
(character
)
names of the statistics that are passed directly to name single statistics
(.stats
). This option is visible when producing rtables::as_result_df()
with make_ard = TRUE
.
- .formats
(named character
or list
)
formats for the statistics. See Details in analyze_vars
for more
information on the "auto"
setting.
- .indent_mods
(named integer
)
indent modifiers for the labels. Defaults to 0, which corresponds to the
unmodified default behavior. Can be negative.
- .labels
(named character
)
labels for the statistics (without indent).
- df
(data.frame
)
data set containing all analysis variables.
- .var
(string
)
name of the column that contains the unique identifier.
- .N_col
(integer(1)
)
column-wise N (column count) for the full column being analyzed that is typically
passed by rtables
.
- .N_row
(integer(1)
)
row-wise N (row group count) for the group of observations being analyzed
(i.e. with no column-based subsetting) that is typically passed by rtables
.
- denom
(string
)
choice of denominator for proportion. Options are:
n
: number of values in this row and column intersection.
N_row
: total number of values in this row across columns.
N_col
: total number of values in this column across rows.
- labelstr
(string
)
label of the level of the parent split currently being summarized
(must be present as second argument in Content Row Functions). See rtables::summarize_row_groups()
for more information.