Description Usage Arguments Details Value Author(s) References Examples

Calculates the two sample test statistic and p-value for the Srivastava-Katayama-Kano test.

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

`X` |
A matrix of dimension |

`Y` |
A matrix of dimension Default value is null. If not specified, the function performs a one-sample test using X. |

The Srivastava-Katayama-Kano test statistic is used to test equality of mean vectors for two groups of multivariate observations, where the dimension is greater than the sample size. `skktest`

takes matrices `X`

and `Y`

as arguments whose rows represent samples from two groups respectively. Depending on the values in `X`

and `Y`

, the function initially determines whether to perform a one sample test (*∑_{i,j} X_{i,j}^2 = 0* or *∑_{i,j} Y_{i,j}^2 = 0*) or a two-sample test. The appropriate test statistic is then calculated and is returned along with the p-value which is calculated using right-tailed normal distribution.

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

Deepak N. Ayyala

Srivastava, M. S., Katayama, S. and Kano, Y. (2013) A two sample test in high dimensional data, Journal of Multivariate Analysis, 114, 349 – 358.

1 2 3 | ```
data(diffMethylData)
skktest(diffMethylData$region1.x, diffMethylData$region1.y)
# skktest(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.