Description Usage Arguments Details Value Author(s) Examples

Performs a two-sample *t*-test using the total signal observed across all variates in multivariate data.

1 | ```
ttest(X, Y)
``` |

`X` |
A matrix of dimension |

`Y` |
A matrix of dimension |

Given multivariate observations collected from two groups, a straightforward univariate test for equality of mean vectors can be constructed by converting the multivariate observations into univariate measures. `ttest`

tests equality of means by converting the *k \times 1* observations into sum, representing each sample by total measurement observed across the variates. Using this total measure as our observed samples, a two-sample *t*-test is performed. If both groups contain all zero observations, (*∑_{i,j} X_{i,j}^2 = 0* and *∑_{i,j} Y_{i,j}^2 = 0*), then the test statistic is set equal to 0 and a p-value of 1 is returned.

A *2 \times 1* vector consisting of the test statistic and the p-value.

Deepak N. Ayyala

1 2 3 | ```
data(diffMethylData)
ttest(diffMethylData$region1.x, diffMethylData$region1.y)
# ttest(diffMethylData$region2.x, diffMethylData$region2.y)
``` |

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.