See https://psiaims.github.io/CAMIS/Comp/r-sas_cmh.html for a general comparison overview between R and SAS.
Usage
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
)Arguments
- df
(
data.frame)
data set containing all analysis variables.- .var
(
string)
single variable name that is passed byrtableswhen requested by a statistics function.- ref_path
(
character)
global reference group specification, seeget_ref_info().- .spl_context
(
data.frame)
gives information about ancestor split states that is passed byrtables.- .ref_group
(
data.frameorvector)
the data corresponding to the reference group.- .in_ref_col
(
logical)TRUEwhen working with the reference level,FALSEotherwise.- .df_row
(
data.frame)
data frame across all of the columns for the given row split.- ...
additional arguments for the lower level functions.
- variables
(
list)
list with arm and strata variable names.- collapse_combo
(
logical)
If TRUE, multiple arm levels from df will be combined into 1 level.- .stats
(
character)
statistics to select for the table.- .formats
(named
characterorlist)
formats for the statistics. See Details inanalyze_varsfor 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).- exclude_levels
(
list)
A named list where names correspond to split variables and values are vectors of levels to exclude.
Value
s_cmhrms_ja single element list containing the p-value from row mean score test.a_cmhrms_jaVerticalRowsSectionobject (single row).
Functions
a_cmhrms_j(): Formatted analysis function which is used asafun.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 theafunwhich can exclude row split levels from producing the analysis. These have to be specified in theexclude_levelsargument, see?do_exclude_splitfor details.
