ttest: Two-Sample Equal Variance t-Test

Description Usage Arguments Value Examples

Description

Two-Sample Equal Variance t-Test

Usage

1
ttest(x, y, alpha = 1/20, alternative = "two.sided", ...)

Arguments

x

a non-empty numeric vector.

y

a non-empty numeric vector.

alpha

value to test hypothesis.

alternative

hypothesis (can take on one of three values).

...

further arguments to be passed to or from methods.

Value

the answers!

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
T1 <- ttest(x = rnorm(300.5, 1), y = rnorm(30, 1, 1), alternative = "less")
T1
print(T1)
plot(T1)
Mx1x2 <- matrix(rnorm(60, 0, 1), nrow = 30)
class(Mx1x2)
TM <- ttest(x = Mx1x2)
TM
plot(TM)
ttest(x = Mx1x2) # Test that a matrix will work
mylist <- list(xl = rnorm(30), yl = rnorm(30))
class(mylist)
ttest(x = mylist, alternative = "greater")
plot(ttest(mylist))

alanarnholt/simplemathr documentation built on May 10, 2019, 8:49 a.m.