- x
A data frame that can be coerced into a tibble.
- formula
A formula with the response variable on the left and the
explanatory on the right. Alternatively, a response and explanatory
argument can be supplied.
- response
The variable name in x that will serve as the response.
This is an alternative to using the formula argument.
- explanatory
The variable name in x that will serve as the
explanatory variable. This is an alternative to using the formula argument.
- success
The level of response that will be considered a success, as
a string. Needed for inference on one proportion, a difference in
proportions, and corresponding z stats.
- null
The null hypothesis. Options include "independence" and
"point".
- p
The true proportion of successes (a number between 0 and 1). To be used with point null hypotheses when the specified response
variable is categorical.
- mu
The true mean (any numerical value). To be used with point null
hypotheses when the specified response variable is continuous.
- med
The true median (any numerical value). To be used with point null
hypotheses when the specified response variable is continuous.
- sigma
The true standard deviation (any numerical value). To be used with
point null hypotheses.
- stat
A string giving the type of the statistic to calculate. Current
options include "mean", "median", "sum", "sd", "prop", "count",
"diff in means", "diff in medians", "diff in props", "Chisq" (or
"chisq"), "F" (or "f"), "t", "z", "ratio of props", "slope",
"odds ratio", "ratio of means", and "correlation". infer only
supports theoretical tests on one or two means via the "t" distribution
and one or two proportions via the "z".
- order
A string vector of specifying the order in which the levels of
the explanatory variable should be ordered for subtraction (or division
for ratio-based statistics), where order = c("first", "second") means
("first" - "second"), or the analogue for ratios. Needed for inference on
difference in means, medians, proportions, ratios, t, and z statistics.
- ...
To pass options like na.rm = TRUE into functions like
mean(), sd(), etc. Can also be used to
supply hypothesized null values for the "t" statistic or additional
arguments to stats::chisq.test().