Description Usage Arguments Details Value Author(s) References Examples
Testing the sphericity, identity and diagonality hypotheses for the row or column covariance matrix.
1 |
datamat |
numeric matrix containing the transposable data. |
N |
positive integer number indicating the sample size, i.e., the number of subjects. |
voi |
character indicating if the test should be applied on the row or
column covariance matrix. Options include ' |
centered |
logical indicating if the transposable data are centered.
Options include |
It is assumed that there are nrow(datamat)
row variables and
ncol(datamat)
/N
column variables in datamat
. Further,
datamat
should be written in such a way that every
ncol(datamat)
/N
consecutive columns belong to the same subject
and the order of the column variables in each block is preserved across
subjects.
The tests are nonparametric and thus robust to some departures from the matrix-variate normal model.
It returns a list with components:
diagonality.ts |
a list containing the test statistic and p-value of the diagonality hypothesis test. |
sphericity.ts |
a list containing the test statistic and p-value of the sphericity hypothesis test. |
identity.ts |
a list containing the test statistic and p-value of the identity hypothesis test. |
N |
the sample size. |
n.rows |
the number of row variables. |
n.cols |
the number of column variables. |
variables |
character indicating if the tests were applied to the row or column covariance matrix. |
centered |
logical indicating if the transposable data were centered. |
Anestis Touloumis
Touloumis, A., Marioni, J.C. and Tavare, S. (2021) Hypothesis Testing for the Covariance Matrix in High-Dimensional Transposable Data with Kronecker Product Dependence Structure. Statistica Sinica 31, 1309–1329.
1 2 3 4 5 6 7 | data(VEGFmouse)
## Hypothesis tests for the covariance matrix of the genes (rows).
genes_cov_test <- covmat.ts(datamat = VEGFmouse, N = 40)
genes_cov_test
## Hypothesis tests for the covariance matrix of the tissues (columns).
tissues_cov_test <- covmat.ts(datamat = VEGFmouse, N = 40, voi = 'columns')
tissues_cov_test
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.