- lyt
(PreDataTableLayouts
)
layout that analyses will be added to.
-- vars
-
+- vars
(character
)
variable names for the primary analysis variable to be iterated over.
-- var_labels
-
+- var_labels
(character
)
variable labels.
-- na_str
-
+- na_str
(string
)
string used to replace all NA
or empty values in the output.
-- nested
-
+- 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.
-- ...
-
+- ...
arguments passed to s_summary()
.
-- na.rm
-
+- na.rm
(flag
)
whether NA
values should be removed from x
prior to analysis.
-- show_labels
-
+- show_labels
(string
)
label visibility: one of "default", "visible" and "hidden".
-- table_names
-
+- table_names
(character
)
this can be customized in the case that the same vars
are analyzed multiple
times, to avoid warnings from rtables
.
-- section_div
-
+- section_div
(string
)
string which should be repeated as a section divider after each group
defined by this split instruction, or NA_character_
(the default) for no section divider.
-- .stats
-
--
-
(character
)
statistics to select for the table.
-Options for numeric variables are: 'n', 'sum', 'mean', 'sd', 'se', 'mean_sd', 'mean_se', 'mean_ci', 'mean_sei', 'mean_sdi', 'mean_pval', 'median', 'mad', 'median_ci', 'quantiles', 'iqr', 'range', 'min', 'max', 'median_range', 'cv', 'geom_mean', 'geom_mean_ci', 'geom_cv'
-Options for non-numeric variables are: 'n', 'count', 'count_fraction', 'count_fraction_fixed_dp', 'fraction', 'n_blq'
-
+- .stats
+(character
)
statistics to select for the table.
+Options for numeric variables are: 'n', 'sum', 'mean', 'sd', 'se', 'mean_sd', 'mean_se', 'mean_ci', 'mean_sei', 'mean_sdi', 'mean_pval', 'median', 'mad', 'median_ci', 'quantiles', 'iqr', 'range', 'min', 'max', 'median_range', 'cv', 'geom_mean', 'geom_mean_ci', 'geom_cv', 'median_ci_3d', 'mean_ci_3d', 'geom_mean_ci_3d'
+Options for non-numeric variables are: 'n', 'count', 'count_fraction', 'count_fraction_fixed_dp', 'fraction', 'n_blq'
-- .formats
-
+- .formats
(named character
or list
)
formats for the statistics. See Details in analyze_vars
for more
information on the "auto"
setting.
-- .labels
-
+- .labels
(named character
)
labels for the statistics (without indent).
-- .indent_mods
-
+- .indent_mods
(named integer
)
indent modifiers for the labels. Each element of the vector
should be a name-value pair with name corresponding to a statistic specified in .stats
and value the indentation
for that statistic's row label.
-- x
-
+- x
(numeric
)
vector of numbers we want to analyze.
-- denom
-
--
-
(string
)
choice of denominator for proportion. Options are:
-
-- .N_row
-
+- .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
.
-- .N_col
-
+- .N_col
(integer(1)
)
column-wise N (column count) for the full column being analyzed that is typically
passed by rtables
.
-- .var
-
+- .var
(string
)
single variable name that is passed by rtables
when requested
by a statistics function.
-- control
-
--
-
(list
)
parameters for descriptive statistics details, specified by using
-the helper function control_analyze_vars()
. Some possible parameter options are:
-
-conf_level
(proportion
)
confidence level of the interval for mean and median.
+- control
+(list
)
parameters for descriptive statistics details, specified by using
+the helper function control_analyze_vars()
. Some possible parameter options are:
conf_level
(proportion
)
confidence level of the interval for mean and median.
quantiles
(numeric(2)
)
vector of length two to specify the quantiles.
quantile_type
(numeric(1)
)
between 1 and 9 selecting quantile algorithms to be used.
See more about type
in stats::quantile()
.
test_mean
(numeric(1)
)
value to test against the mean under the null hypothesis when calculating p-value.
-
-
+
-- verbose
-
+- verbose
(flag
)
defaults to TRUE
, which prints out warnings and messages. It is mainly used
to print out information about factor casting.
-- .df_row
-
+- .df_row
(data.frame
)
data frame across all of the columns for the given row split.
-- .ref_group
-
+- .ref_group
(data.frame
or vector
)
the data corresponding to the reference group.
-- .in_ref_col
-
+- .in_ref_col
(flag
)
TRUE
when working with the reference level, FALSE
otherwise.
-- compare
-
+- compare
(flag
)
whether comparison statistics should be analyzed instead of summary statistics
(compare = TRUE
adds pval
statistic comparing against reference group).
-
-