See https://psiaims.github.io/CAMIS/Comp/r-sas_cmh.html for a general comparison overview between R and SAS.
a_cmhrms_j(
df,
.var,
ref_path,
.spl_context,
.ref_group,
.in_ref_col,
.df_row,
...,
variables,
collapse_combo = TRUE,
.stats = NULL,
.formats = NULL,
.indent_mods = NULL,
.labels = NULL
)s_cmhrms_j(
df,
.var,
.ref_group,
.in_ref_col,
...,
.df_row,
variables,
collapse_combo = FALSE
)
a_cmhrms_j_with_exclude(
df,
exclude_levels,
.var,
.spl_context,
.ref_group,
.in_ref_col,
.df_row,
...,
.stats = NULL,
.formats = NULL,
.indent_mods = NULL,
.labels = NULL
)
s_cmhrms_j a single element list containing the p-value from row mean score test.
a_cmhrms_j a VerticalRowsSection object (single row).
(data.frame)
data set containing all analysis variables.
(string)
single variable name that is passed by rtables when requested
by a statistics function.
(character)
global reference group specification, see get_ref_info().
(data.frame)
gives information about ancestor split states
that is passed by rtables.
(data.frame or vector)
the data corresponding to the reference group.
(logical)
TRUE when working with the reference level, FALSE otherwise.
(data.frame)
data frame across all of the columns for the given row split.
additional arguments for the lower level functions.
(list)
list with arm and strata variable names.
(logical)
If TRUE, multiple arm levels from df
will be combined into 1 level.
(character)
statistics to select for the table.
(named character or list)
formats for the statistics. See Details in analyze_vars for more
information on the 'auto' setting.
(named integer)
indent modifiers for the labels. Defaults to 0, which corresponds to the
unmodified default behavior. Can be negative.
(named character)
labels for the statistics (without indent).
(list)
A named list where names correspond to split variables
and values are vectors of levels to exclude.
a_cmhrms_j(): Formatted analysis function which is used as afun.
s_cmhrms_j(): Statistics function for the calculation of the p-value
based upon the row mean scores test.
a_cmhrms_j_with_exclude(): Wrapper for the afun which can exclude
row split levels from producing the analysis. These have to be specified in the
exclude_levels argument, see ?do_exclude_split for details.