Description Usage Arguments Value References Examples
This function implements the test of equal mean for two-sample high-dimension data using the ZWL and ZWLm tests proposed by Zhang and Wang (2020).
1 |
X |
The data matrix (n by p) from the first population. |
Y |
The data matrix (m by p) from the second population. |
order |
The order of center correction. Possible choices are 0, 2.
To use the ZWLm test, set |
The value of the test statistic.
The p-value of the test statistic based on the asymptotic normality established by Zhang and Wang (2020)
The average of the squared univariate t-statistics.
The estimated variance of Tn
Zhang, H. and Wang, H. (2020). Result consistency of high dimensional two-sample tests applied to gene ontology terms with gene sets. Manuscript in review.
1 2 3 4 5 6 7 8 9 10 11 | # Generate a simulated two-sample dataset and apply the ZWL test
data <- buildData(n = 45, m =60, p = 300,
muX = rep(0,300), muY = rep(0,300),
dep = 'IND', S = 1, innov = rnorm)
zwl_test(data[[1]]$X, data[[1]]$Y, order = 2)
# Apply the ZWLm test to a GO term to see if the two groups are differentiately expressed.
# The data for the GO term were stored in GO_example.
zwl_test(GO_example$X, GO_example$Y, order = 0)
# Apply the ZWL test to the GO term
zwl_test(GO_example$X, GO_example$Y, order = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.