Many 2 sample student's t-tests | R Documentation |

It performs very many 2 sample student's t-tests.

```
stud.ttests(x, y = NULL, ina, logged = FALSE, parallel = FALSE)
```

`x` |
A matrix with the data, where the rows denote the samples and the columns are the variables. |

`y` |
A second matrix with the data of the second group. If this is NULL (default value) then the argument ina must be supplied. Notice that when you supply the two matrices the procedure is two times faster. |

`ina` |
A numerical vector with 1s and 2s indicating the two groups. Be careful, the function is designed to accept only these two numbers. In addition, if your "y" is NULL, you must specify "ina". |

`logged` |
Should the p-values be returned (FALSE) or their logarithm (TRUE)? |

`parallel` |
Should parallel implentations take place in C++? The default value is FALSE. |

For the t-tests, the student's t-test (that assumes equal variances) is performed.

A matrix with the test statistic, the degrees of freedom and the p-value (or their logarithm) of each test.

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

"Student" William Sealy Gosset (1908). The probable error of a mean. Biometrika. 6(1): 1-25.

```
boot.student2, boot.ttest1
```

```
## 1000 variables, hence 20 t-tests will be performed
x = matrix( rnorm(100 * 20), ncol = 20)
## 100 observations in total
ina = rbinom(100, 1, 0.6) + 1 ## independent samples t-test
stud.ttests(x, ina = ina)
x1 = x[ina == 1, ]
x2 = x[ina == 2, ]
stud.ttests(x1, x2)
x <- NULL
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.