Performs one and two sample t-tests.
The mosaic t.test provides wrapper functions around the function
of the same name in stats.
These wrappers provide an extended interface that allows for a more systematic
use of the formula interface.
Usage
t_test(x, y = NULL, ..., data = parent.frame())
t.test(x, y=NULL, ..., data = parent.frame())
Arguments
x
a formula or a non-empty numeric vector
y
an optional non-empty numeric vector or formula
data
a data frame
...
additional arguments, see t.test in the
stats package.
When x is a formula, groups can be used to compare groups:
x = ~ var, groups=g is equivalent t
Value
an object of class htest
Details
This is a wrapper around t.test from the stats package
to extend the functionality of the formula interface.