View source: R/hypothesis_helper.R
specify_hypothesis | R Documentation |
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
)
hypothesis |
String or Function. Compute a test statistic.
|
comparison |
String. "ratio" or "difference" |
label |
Function. Accepts a vector of row labels and combines them to create hypothesis labels. |
label_columns |
Character vector. Column names to use for hypothesis labels. Default is |
by |
Character vector. Variable names which indicate subgroups in which the |
internal |
Logical. Raises a deprecation warning when 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.