hypothesis
argument to conduct (group-wise) hypothesis tests.(EXPERIMENTAL) This experimental function will soon be deprecated. Please supply a formula or function to the hypothesis
argument to conduct (group-wise) hypothesis tests.
specify_hypothesis(
hypothesis = "reference",
comparison = "difference",
label = NULL,
label_columns = NULL,
by = c("term", "group", "contrast"),
internal = FALSE
)
specify_hypothesis()
is a "function factory", which means that executing it will return a function suitable for use in the hypothesis
argument of a marginaleffects
function.
String or Function. Compute a test statistic.
String: "reference" or "sequential"
Function: Accepts a single argument named estimate
and returns a numeric vector.
String. "ratio" or "difference"
Function. Accepts a vector of row labels and combines them to create hypothesis labels.
Character vector. Column names to use for hypothesis labels. Default is c("group", "term", "rowid", attr(x, "variables_datagrid"), attr(x, "by"))
.
Character vector. Variable names which indicate subgroups in which the hypothesis
function should be applied.
Logical. Raises a deprecation warning when FALSE.