A formula with the response variable on the left and the
explanatory on the right.
order
A string vector of specifying the order in which the levels of
the explanatory variable should be ordered for subtraction, where order = c("first", "second") means ("first" - "second").
alternative
Character string giving the direction of the alternative
hypothesis. Options are "two_sided" (default), "greater", or "less".
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. TRUE by default.
conf_level
A numeric value between 0 and 1. Default value is 0.95.
# NOT RUN {# t test for comparing mpg against automatic/manualmtcars %>%
dplyr::mutate(am = factor(am)) %>%
t_test(mpg ~ am, order = c("1", "0"), alternative = "less")
# }