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.
rdname ttest
Usage
t.test(x, ...)
ttest(x, ...)
## S3 method for class 'default':
ttest(x, ...)
## S3 method for class 'formula':
ttest(x, data = parent.frame(), ...)
Arguments
x
an object (e.g., a formula or a numeric vector)
data
a data frame
...
additional arguments, see
t.test in the stats package.
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.