# allttests: Matrix with all pairs of t-tests In Rfast: A Collection of Efficient and Extremely Fast R Functions

## Description

Matrix with all pairs of t-tests.

## Usage

 ```1 2``` ```allttests(x, y = NULL, ina, logged = FALSE) ttests.pairs(x, logged = FALSE) ```

## Arguments

 `x` A numerical matrix with the data. `y` For the case of "all.tests", if you have the second group or sample provide it here, otherwise leave it NULL. For the case of "ttests.pairs" this is not required. `ina` If you have the data in one matric then provide this indicator variable separating the samples. This numerical vector must contain 1s and 2s only as values. For the case of "ttests.pairs" this is not required. `logged` Should the p-values be returned (FALSE) or their logarithm (TRUE)?

## Details

The function does all the pairwise t-tests assuming unequal variances (Welch's t-test). The "all.ttests" does all the pairs formed by "cutting" the matrices x and y in two and everything between them. The "ttests.pairs" accepts a matrix x and does all the pairs of t-tests. This is similar to the correlation matrix style.

## Value

A list including:

 `stat` A matrix with t-test statistic for each pair of variables. `pvalue` A matrix with the corresponding p-values. `dof` A matrix with the relevant degrees of freedom.

## Author(s)

Michail Tsagris

```ttests, ftests, ttest, g2Test_univariate ```
 ```1 2 3 4``` ```x <- as.matrix( iris[1:100, 1:4] ) ina <- as.numeric(iris[1:100, 5]) a <- allttests(x, ina = ina) b <- ttests.pairs(x) ## less tests ```