two_sample_test
tests that y
has the same mean
within the two groups defined by x
two_sample_test(data, x, y, confint = 0.95, alternative = c("both", "less", "greater", "all"))
factor
numeric
vectortwo_sample_test
returns an object of class "two_sample_test"
.
An object of class "two_sample_test"
is a list containing the
following components:
two_sample_test(mtcars, 'am', 'mpg', alternative = 'less')#> Error in data_split(data, x, y): could not find function "%>%"two_sample_test(mtcars, 'am', 'mpg', alternative = 'greater')#> Error in data_split(data, x, y): could not find function "%>%"two_sample_test(mtcars, 'am', 'mpg', alternative = 'both')#> Error in data_split(data, x, y): could not find function "%>%"two_sample_test(mtcars, 'am', 'mpg', alternative = 'all')#> Error in data_split(data, x, y): could not find function "%>%"