A shortcut wrapper function to get the observed test statistic for a t test.
t_stat( x, formula, response = NULL, explanatory = NULL, order = NULL, alternative = "two_sided", mu = 0, conf_int = FALSE, conf_level = 0.95, ... )
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. |
response | The variable name in |
explanatory | The variable name in |
order | A string vector of specifying the order in which the levels of
the explanatory variable should be ordered for subtraction, where |
alternative | Character string giving the direction of the alternative
hypothesis. Options are |
mu | A numeric value giving the hypothesized null mean value for a one sample test and the hypothesized difference for a two sample test. |
conf_int | A logical value for whether to include the confidence
interval or not. |
conf_level | A numeric value between 0 and 1. Default value is 0.95. |
... | Pass in arguments to \infer\ functions. |