Title: | High-Dimensional Location Testing with Normal-Reference Approaches |
---|---|
Description: | We provide a collection of various classical tests and latest normal-reference tests for comparing high-dimensional mean vectors including two-sample and general linear hypothesis testing (GLHT) problem. Some existing tests for two-sample problem [see Bai, Zhidong, and Hewa Saranadasa.(1996) <https://www.jstor.org/stable/24306018>; Chen, Song Xi, and Ying-Li Qin.(2010) <doi:10.1214/09-aos716>; Srivastava, Muni S., and Meng Du.(2008) <doi:10.1016/j.jmva.2006.11.002>; Srivastava, Muni S., Shota Katayama, and Yutaka Kano.(2013)<doi:10.1016/j.jmva.2012.08.014>]. Normal-reference tests for two-sample problem [see Zhang, Jin-Ting, Jia Guo, Bu Zhou, and Ming-Yen Cheng.(2020) <doi:10.1080/01621459.2019.1604366>; Zhang, Jin-Ting, Bu Zhou, Jia Guo, and Tianming Zhu.(2021) <doi:10.1016/j.jspi.2020.11.008>; Zhang, Liang, Tianming Zhu, and Jin-Ting Zhang.(2020) <doi:10.1016/j.ecosta.2019.12.002>; Zhang, Liang, Tianming Zhu, and Jin-Ting Zhang.(2023) <doi:10.1080/02664763.2020.1834516>; Zhang, Jin-Ting, and Tianming Zhu.(2022) <doi:10.1080/10485252.2021.2015768>; Zhang, Jin-Ting, and Tianming Zhu.(2022) <doi:10.1007/s42519-021-00232-w>; Zhu, Tianming, Pengfei Wang, and Jin-Ting Zhang.(2023) <doi:10.1007/s00180-023-01433-6>]. Some existing tests for GLHT problem [see Fujikoshi, Yasunori, Tetsuto Himeno, and Hirofumi Wakaki.(2004) <doi:10.14490/jjss.34.19>; Srivastava, Muni S., and Yasunori Fujikoshi.(2006) <doi:10.1016/j.jmva.2005.08.010>; Yamada, Takayuki, and Muni S. Srivastava.(2012) <doi:10.1080/03610926.2011.581786>; Schott, James R.(2007) <doi:10.1016/j.jmva.2006.11.007>; Zhou, Bu, Jia Guo, and Jin-Ting Zhang.(2017) <doi:10.1016/j.jspi.2017.03.005>]. Normal-reference tests for GLHT problem [see Zhang, Jin-Ting, Jia Guo, and Bu Zhou.(2017) <doi:10.1016/j.jmva.2017.01.002>; Zhang, Jin-Ting, Bu Zhou, and Jia Guo.(2022) <doi:10.1016/j.jmva.2021.104816>; Zhu, Tianming, Liang Zhang, and Jin-Ting Zhang.(2022) <doi:10.5705/ss.202020.0362>; Zhu, Tianming, and Jin-Ting Zhang.(2022) <doi:10.1007/s00180-021-01110-6>; Zhang, Jin-Ting, and Tianming Zhu.(2022) <doi:10.1016/j.csda.2021.107385>]. |
Authors: | Pengfei Wang [aut, cre], Shuqi Luo [aut], Tianming Zhu [aut], Bu Zhou [aut] |
Maintainer: | Pengfei Wang <[email protected]> |
License: | GPL (>= 3) |
Version: | 2.0.1 |
Built: | 2024-11-22 06:26:10 UTC |
Source: | CRAN |
Bai and Saranadasa (1996)'s test for testing equality of two-sample high-dimensional mean vectors with assuming that two covariance matrices are the same.
BS1996.TS.NABT(y1, y2)
BS1996.TS.NABT(y1, y2)
y1 |
The data matrix ( |
y2 |
The data matrix ( |
Suppose we have two independent high-dimensional samples:
The primary object is to test
Bai and Saranadasa (1996) proposed the following centralised -norm-based test statistic:
where are the sample mean vectors and
is the pooled sample covariance matrix.
They showed that under the null hypothesis,
is asymptotically normally distributed.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Bai Z, Saranadasa H (1996). “Effect of high dimension: by an example of a two sample problem.” Statistica Sinica, 311–329. https://www.jstor.org/stable/24306018.
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients BS1996.TS.NABT(group1,group2)
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients BS1996.TS.NABT(group1,group2)
This dataset was acquired during a keratoconus study, a collaborative project involving Ms.Nancy Tripoli and Dr.Kenneth L.Cohen of Department of Ophthalmology at the University of North Carolina, Chapel Hill. The fitted feature vectors for the complete corneal surface dataset collectively into a feature matrix with dimensions of 150 × 2000.
data(corneal)
data(corneal)
A data frame with 150 observations on the following 4 groups.
row 1 to row 43 in total 43 rows of the feature matrix correspond to observations from the normal group
row 44 to row 57 in total 14 rows of the feature matrix correspond to observations from the unilateral suspect group
row 58 to row 78 in total 21 of the feature matrix correspond to observations from the suspect map group
row 79 to row 150 in total 72 of the feature matrix correspond to observations from the clinical keratoconus group
Smaga Ł, Zhang J (2019). “Linear hypothesis testing with functional data.” Technometrics, 61(1), 99–110. doi:10.1080/00401706.2018.1456976.
library(HDNRA) data(corneal) dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group dim(group1) group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group dim(group2) group3 <- as.matrix(corneal[58:78, ]) ## suspect map group dim(group3) group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group dim(group4)
library(HDNRA) data(corneal) dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group dim(group1) group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group dim(group2) group3 <- as.matrix(corneal[58:78, ]) ## suspect map group dim(group3) group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group dim(group4)
A COVID19 data set from NCBI with ID GSE152641. The data set profiled peripheral blood from 24 healthy controls and 62 prospectively enrolled patients with community-acquired lower respiratory tract infection by SARS-COV-2 within the first 24 hours of hospital admission using RNA sequencing.
data(COVID19)
data(COVID19)
A data frame with 86 observations on the following 2 groups.
row 2 to row 19, and row 82 to 87, in total 24 healthy controls
row 20 to 81, in total 62 prospectively enrolled patients
Thair SA, He YD, Hasin-Brumshtein Y, Sakaram S, Pandya R, Toh J, Rawling D, Remmel M, Coyle S, Dalekos GN, others (2021). “Transcriptomic similarities and differences in host response between SARS-CoV-2 and other viral infections.” Iscience, 24(1). doi:10.1016/j.isci.2020.101947.
library(HDNRA) data(COVID19) dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group dim(group1) group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients dim(group2)
library(HDNRA) data(COVID19) dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group dim(group1) group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients dim(group2)
Chen and Qin (2010)'s test for testing equality of two-sample high-dimensional mean vectors without assuming that two covariance matrices are the same.
CQ2010.TSBF.NABT(y1, y2)
CQ2010.TSBF.NABT(y1, y2)
y1 |
The data matrix ( |
y2 |
The data matrix ( |
Suppose we have two independent high-dimensional samples:
The primary object is to test
Chen and Qin (2010) proposed the following test statistic:
They showed that under the null hypothesis, is asymptotically normally distributed.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Chen SX, Qin Y (2010). “A two-sample test for high-dimensional data with applications to gene-set testing.” The Annals of Statistics, 38(2). doi:10.1214/09-aos716.
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients CQ2010.TSBF.NABT(group1,group2)
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients CQ2010.TSBF.NABT(group1,group2)
Fujikoshi et al. (2004)'s test for general linear hypothesis testing (GLHT) problem for high-dimensional data with assuming that underlying covariance matrices are the same.
FHW2004.GLHT.NABT(Y,X,C,n,p)
FHW2004.GLHT.NABT(Y,X,C,n,p)
Y |
A list of |
X |
A known |
C |
A known matrix of size |
n |
A vector of |
p |
The dimension of data. |
A high-dimensional linear regression model can be expressed as
where is a
unknown parameter matrix and
is an
error matrix.
It is of interest to test the following GLHT problem
Fujikoshi et al. (2004) proposed the following test statistic:
where and
are the matrices of sums of squares and products due to the hypothesis and the error, respecitively.
They showed that under the null hypothesis, is asymptotically normally distributed.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Fujikoshi Y, Himeno T, Wakaki H (2004). “Asymptotic results of a high dimensional MANOVA test and power comparison when the dimension is large compared to the sample size.” Journal of the Japan Statistical Society, 34(1), 19–26. doi:10.14490/jjss.34.19.
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) X <- matrix(c(rep(1,n[1]),rep(0,sum(n)),rep(1,n[2]), rep(0,sum(n)), rep(1,n[3]),rep(0,sum(n)),rep(1,n[4])),ncol=k,nrow=sum(n)) q <- k-1 C <- cbind(diag(q),-rep(1,q)) FHW2004.GLHT.NABT(Y,X,C,n,p)
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) X <- matrix(c(rep(1,n[1]),rep(0,sum(n)),rep(1,n[2]), rep(0,sum(n)), rep(1,n[3]),rep(0,sum(n)),rep(1,n[4])),ncol=k,nrow=sum(n)) q <- k-1 C <- cbind(diag(q),-rep(1,q)) FHW2004.GLHT.NABT(Y,X,C,n,p)
The "NRtest"
objects provide a comprehensive summary of hypothesis test outcomes,
including test statistics, p-values, parameter estimates, and confidence intervals, if applicable.
NRtest.object( statistic, p.value, method, null.value, alternative, parameter = NULL, sample.size = NULL, sample.dimension = NULL, estimation.method = NULL, data.name = NULL, ... )
NRtest.object( statistic, p.value, method, null.value, alternative, parameter = NULL, sample.size = NULL, sample.dimension = NULL, estimation.method = NULL, data.name = NULL, ... )
statistic |
Numeric scalar containing the value of the test statistic, with a |
p.value |
Numeric scalar containing the p-value for the test. |
method |
Character string giving the name of the test. |
null.value |
Character string indicating the null hypothesis. |
alternative |
Character string indicating the alternative hypothesis. |
parameter |
Numeric vector containing the estimated approximation parameter(s) associated with the approximation method. This vector has a |
sample.size |
Numeric vector containing the number of observations in each group used for the hypothesis test. |
sample.dimension |
Numeric scalar containing the dimension of the dataset used for the hypothesis test. |
estimation.method |
Character string giving the name of the approximation approach used to approximate the null distribution of the test statistic. |
data.name |
Character string describing the data set used in the hypothesis test. |
... |
Additional optional arguments. |
A class of objects returned by high-dimensional hypothesis testing functions in the HDNRA package, designed to encapsulate detailed results from statistical hypothesis tests. These objects are structured similarly to htest objects in the package EnvStats but are tailored to the needs of the HDNRA package.
An object of class "NRtest"
containing both required and optional components depending on the specifics of the hypothesis test,
shown as follows:
These components must be present in every "NRtest"
object:
statistic
Must e present.
p.value
Must e present.
null.value
Must e present.
alternative
Must e present.
method
Must e present.
These components are included depending on the specifics of the hypothesis test performed:
parameter
May be present.
sample.size
May be present.
sample.dimension
May be present.
estimation.method
May be present.
data.name
May be present.
The class has the following methods:
print.NRtest
Printing the contents of the NRtest object in a human-readable form.
# Example 1: Using Bai and Saranadasa (1996)'s test (two-sample problem) NRtest.obj1 <- NRtest.object( statistic = c("T[BS]" = 2.208), p.value = 0.0136, method = "Bai and Saranadasa (1996)'s test", data.name = "group1 and group2", null.value = c("Difference between two mean vectors is o"), alternative = "Difference between two mean vectors is not 0", parameter = NULL, sample.size = c(n1 = 24, n2 = 26), sample.dimension = 20460, estimation.method = "Normal approximation" ) print(NRtest.obj1) # Example 2: Using Fujikoshi et al. (2004)'s test (GLHT problem) NRtest.obj2 <- NRtest.object( statistic = c("T[FHW]" = 6.4015), p.value = 0, method = "Fujikoshi et al. (2004)'s test", data.name = "Y", null.value = "The general linear hypothesis is true", alternative = "The general linear hypothesis is not true", parameter = NULL, sample.size = c(n1 = 43, n2 = 14, n3 = 21, n4 = 72), sample.dimension = 2000, estimation.method = "Normal approximation" ) print(NRtest.obj2)
# Example 1: Using Bai and Saranadasa (1996)'s test (two-sample problem) NRtest.obj1 <- NRtest.object( statistic = c("T[BS]" = 2.208), p.value = 0.0136, method = "Bai and Saranadasa (1996)'s test", data.name = "group1 and group2", null.value = c("Difference between two mean vectors is o"), alternative = "Difference between two mean vectors is not 0", parameter = NULL, sample.size = c(n1 = 24, n2 = 26), sample.dimension = 20460, estimation.method = "Normal approximation" ) print(NRtest.obj1) # Example 2: Using Fujikoshi et al. (2004)'s test (GLHT problem) NRtest.obj2 <- NRtest.object( statistic = c("T[FHW]" = 6.4015), p.value = 0, method = "Fujikoshi et al. (2004)'s test", data.name = "Y", null.value = "The general linear hypothesis is true", alternative = "The general linear hypothesis is not true", parameter = NULL, sample.size = c(n1 = 43, n2 = 14, n3 = 21, n4 = 72), sample.dimension = 2000, estimation.method = "Normal approximation" ) print(NRtest.obj2)
Prints the details of the NRtest object in a user-friendly manner. This method provides a clear and concise presentation of the test results contained within the NRtest object, including all relevant statistical metrics and test details.
## S3 method for class \pkg{NRtest} ## S3 method for class 'NRtest' print(x, ...)
## S3 method for class \pkg{NRtest} ## S3 method for class 'NRtest' print(x, ...)
x |
an NRtest object. |
... |
further arguments passed to or from other methods. |
The print.NRtest
function formats and presents the contents of the NRtest
object, which includes statistical test results and related parameters. This
function is designed to provide a user-friendly display of the object's
contents, making it easier to understand the results of the analysis.
Invisibly returns the input x
.
Pengfei Wang [email protected]
Schott, J. R. (2007)'s test for one-way MANOVA problem for high-dimensional data with assuming that underlying covariance matrices are the same.
S2007.ks.NABT(Y, n, p)
S2007.ks.NABT(Y, n, p)
Y |
A list of |
n |
A vector of |
p |
The dimension of data. |
Suppose we have the following independent high-dimensional samples:
It is of interest to test the following one-way MANOVA problem:
Schott (2007) proposed the following test statistic:
where ,
,
, and
, with
.
They showed that under the null hypothesis,
is asymptotically normally distributed.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Schott JR (2007). “Some high-dimensional tests for a one-way MANOVA.” Journal of Multivariate Analysis, 98(9), 1825–1839. doi:10.1016/j.jmva.2006.11.007.
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) S2007.ks.NABT(Y, n, p)
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) S2007.ks.NABT(Y, n, p)
Srivastava and Du (2008)'s test for testing equality of two-sample high-dimensional mean vectors with assuming that two covariance matrices are the same.
SD2008.TS.NABT(y1, y2)
SD2008.TS.NABT(y1, y2)
y1 |
The data matrix ( |
y2 |
The data matrix ( |
Suppose we have two independent high-dimensional samples:
The primary object is to test
Srivastava and Du (2008) proposed the following test statistic:
where are the sample mean vectors,
is the diagonal matrix of sample variance,
is the sample correlation matrix and
is the adjustment coefficient proposed by Srivastava and Du (2008).
They showed that under the null hypothesis,
is asymptotically normally distributed.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Srivastava MS, Du M (2008). “A test for the mean vector with fewer observations than the dimension.” Journal of Multivariate Analysis, 99(3), 386–402. doi:10.1016/j.jmva.2006.11.002.
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients SD2008.TS.NABT(group1,group2)
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients SD2008.TS.NABT(group1,group2)
Srivastava and Fujikoshi (2006)'s test for general linear hypothesis testing (GLHT) problem for high-dimensional data with assuming that underlying covariance matrices are the same.
SF2006.GLHT.NABT(Y,X,C,n,p)
SF2006.GLHT.NABT(Y,X,C,n,p)
Y |
A list of |
X |
A known |
C |
A known matrix of size |
n |
A vector of |
p |
The dimension of data. |
A high-dimensional linear regression model can be expressed as
where is a
unknown parameter matrix and
is an
error matrix.
It is of interest to test the following GLHT problem
Srivastava and Fujikoshi (2006) proposed the following test statistic:
where and
are the matrix of sum of squares and products due to error and the error, respectively, and
.
They showed that under the null hypothesis,
is asymptotically normally distributed.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Srivastava MS, Fujikoshi Y (2006). “Multivariate analysis of variance with fewer observations than the dimension.” Journal of Multivariate Analysis, 97(9), 1927–1940. doi:10.1016/j.jmva.2005.08.010.
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) X <- matrix(c(rep(1,n[1]),rep(0,sum(n)),rep(1,n[2]), rep(0,sum(n)), rep(1,n[3]),rep(0,sum(n)),rep(1,n[4])),ncol=k,nrow=sum(n)) q <- k-1 C <- cbind(diag(q),-rep(1,q)) SF2006.GLHT.NABT(Y,X,C,n,p)
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) X <- matrix(c(rep(1,n[1]),rep(0,sum(n)),rep(1,n[2]), rep(0,sum(n)), rep(1,n[3]),rep(0,sum(n)),rep(1,n[4])),ncol=k,nrow=sum(n)) q <- k-1 C <- cbind(diag(q),-rep(1,q)) SF2006.GLHT.NABT(Y,X,C,n,p)
Srivastava et al. (2013)'s test for testing equality of two-sample high-dimensional mean vectors without assuming that two covariance matrices are the same.
SKK2013.TSBF.NABT(y1, y2)
SKK2013.TSBF.NABT(y1, y2)
y1 |
The data matrix ( |
y2 |
The data matrix ( |
Suppose we have two independent high-dimensional samples:
The primary object is to test
Srivastava et al. (2013) proposed the following test statistic:
where are the sample mean vectors,
with
being the diagonal matrices consisting of only the diagonal elements of the sample covariance matrices.
is given by equation (1.18) in Srivastava et al. (2013), and
is the adjustment coefficient proposed by Srivastava et al. (2013).
They showed that under the null hypothesis,
is asymptotically normally distributed.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Srivastava MS, Katayama S, Kano Y (2013). “A two sample test in high dimensional data.” Journal of Multivariate Analysis, 114, 349–358. doi:10.1016/j.jmva.2012.08.014.
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients SKK2013.TSBF.NABT(group1,group2)
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients SKK2013.TSBF.NABT(group1,group2)
Yamada and Srivastava (2012)'test for general linear hypothesis testing (GLHT) problem for high-dimensional data with assuming that underlying covariance matrices are the same.
YS2012.GLHT.NABT(Y,X,C,n,p)
YS2012.GLHT.NABT(Y,X,C,n,p)
Y |
A list of |
X |
A known |
C |
A known matrix of size |
n |
A vector of |
p |
The dimension of data. |
A high-dimensional linear regression model can be expressed as
where is a
unknown parameter matrix and
is an
error matrix.
It is of interest to test the following GLHT problem
Yamada and Srivastava (2012) proposed the following test statistic:
where and
are the variation matrices due to the hypothesis and error, respectively, and
and
are diagonal matrix with the diagonal elements of
and the sample correlation matrix, respectively.
is the adjustment coefficient proposed by Yamada and Srivastava (2012).
They showed that under the null hypothesis,
is asymptotically normally distributed.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Yamada T, Srivastava MS (2012). “A test for multivariate analysis of variance in high dimension.” Communications in Statistics-Theory and Methods, 41(13-14), 2602–2615. doi:10.1080/03610926.2011.581786.
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) X <- matrix(c(rep(1,n[1]),rep(0,sum(n)),rep(1,n[2]), rep(0,sum(n)),rep(1,n[3]), rep(0,sum(n)),rep(1,n[4])),ncol=k,nrow=sum(n)) q <- k-1 C <- cbind(diag(q),-rep(1,q)) YS2012.GLHT.NABT(Y,X,C,n,p)
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) X <- matrix(c(rep(1,n[1]),rep(0,sum(n)),rep(1,n[2]), rep(0,sum(n)),rep(1,n[3]), rep(0,sum(n)),rep(1,n[4])),ncol=k,nrow=sum(n)) q <- k-1 C <- cbind(diag(q),-rep(1,q)) YS2012.GLHT.NABT(Y,X,C,n,p)
Zhang et al. (2017)'s test for general linear hypothesis testing (GLHT) problem for high-dimensional data with assuming that underlying covariance matrices are the same.
ZGZ2017.GLHT.2cNRT(Y,G,n,p)
ZGZ2017.GLHT.2cNRT(Y,G,n,p)
Y |
A list of |
G |
A known full-rank coefficient matrix ( |
n |
A vector of |
p |
The dimension of data. |
Suppose we have the following independent high-dimensional samples:
It is of interest to test the following GLHT problem:
where
is a
matrix collecting
mean vectors and
is a known full-rank coefficient matrix with
.
Zhang et al. (2017) proposed the following test statistic:
where , and
, with
being the sample mean vectors and
.
They showed that under the null hypothesis, and a chi-squared-type mixture have the same normal or non-normal limiting distribution.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Zhang J, Guo J, Zhou B (2017). “Linear hypothesis testing in high-dimensional one-way MANOVA.” Journal of Multivariate Analysis, 155, 200–216. doi:10.1016/j.jmva.2017.01.002.
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) G <- cbind(diag(k-1),rep(-1,k-1)) ZGZ2017.GLHT.2cNRT(Y,G,n,p)
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) G <- cbind(diag(k-1),rep(-1,k-1)) ZGZ2017.GLHT.2cNRT(Y,G,n,p)
Zhou et al. (2017)'s test for general linear hypothesis testing (GLHT) problem for high-dimensional data under heteroscedasticity.
ZGZ2017.GLHTBF.NABT(Y,G,n,p)
ZGZ2017.GLHTBF.NABT(Y,G,n,p)
Y |
A list of |
G |
A known full-rank coefficient matrix ( |
n |
A vector of |
p |
The dimension of data. |
Suppose we have the following independent high-dimensional samples:
It is of interest to test the following GLHT problem:
where
is a
matrix collecting
mean vectors and
is a known full-rank coefficient matrix with
.
Let be the sample mean vectors and
be the sample covariance matrices.
Zhou et al. (2017) proposed the following U-statistic based test statistic:
where ,
, and
is the
th entry of the
matrix
.
They showed that under the null hypothesis, is asymptotically normally distributed.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Zhou B, Guo J, Zhang J (2017). “High-dimensional general linear hypothesis testing under heteroscedasticity.” Journal of Statistical Planning and Inference, 188, 36–54. doi:10.1016/j.jspi.2017.03.005.
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) G <- cbind(diag(k-1),rep(-1,k-1)) ZGZ2017.GLHTBF.NABT(Y,G,n,p)
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) G <- cbind(diag(k-1),rep(-1,k-1)) ZGZ2017.GLHTBF.NABT(Y,G,n,p)
Zhang et al. (2020)'s test for testing equality of two-sample high-dimensional mean vectors with assuming that two covariance matrices are the same.
ZGZC2020.TS.2cNRT(y1, y2)
ZGZC2020.TS.2cNRT(y1, y2)
y1 |
The data matrix ( |
y2 |
The data matrix ( |
Suppose we have two independent high-dimensional samples:
The primary object is to test
Zhang et al.(2020) proposed the following test statistic:
where are the sample mean vectors.
They showed that under the null hypothesis,
and a chi-squared-type mixture have the same normal or non-normal limiting distribution.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Zhang J, Guo J, Zhou B, Cheng M (2020). “A simple two-sample test in high dimensions based on L 2-norm.” Journal of the American Statistical Association, 115(530), 1011–1027. doi:10.1080/01621459.2019.1604366.
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients ZGZC2020.TS.2cNRT(group1, group2)
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients ZGZC2020.TS.2cNRT(group1, group2)
Zhu et al. (2023)'s test for testing equality of two-sample high-dimensional mean vectors without assuming that two covariance matrices are the same.
ZWZ2023.TSBF.2cNRT(y1, y2)
ZWZ2023.TSBF.2cNRT(y1, y2)
y1 |
The data matrix ( |
y2 |
The data matrix ( |
Suppose we have two independent high-dimensional samples:
The primary object is to test
Zhu et al. (2023) proposed the following test statistic:
where are the sample mean vectors and
is the estimator of
.
They showed that under the null hypothesis,
and an F-type mixture have the same normal or non-normal limiting distribution.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Zhu T, Wang P, Zhang J (2023). “Two-sample Behrens–Fisher problems for high-dimensional data: a normal reference F-type test.” Computational Statistics, 1–24. doi:10.1007/s00180-023-01433-6.
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients ZWZ2023.TSBF.2cNRT(group1, group2)
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients ZWZ2023.TSBF.2cNRT(group1, group2)
Zhu and Zhang (2022)'s test for general linear hypothesis testing (GLHT) problem for high-dimensional data with assuming that underlying covariance matrices are the same.
ZZ2022.GLHT.3cNRT(Y,G,n,p)
ZZ2022.GLHT.3cNRT(Y,G,n,p)
Y |
A list of |
G |
A known full-rank coefficient matrix ( |
n |
A vector of |
p |
The dimension of data. |
Suppose we have the following independent high-dimensional samples:
It is of interest to test the following GLHT problem:
where
is a
matrix collecting
mean vectors and
is a known full-rank coefficient matrix with
.
Zhu and Zhang (2022) proposed the following test statistic:
where , and
, with
being the sample mean vectors and
being the usual pooled sample covariance matrix of the
samples.
They showed that under the null hypothesis, and a chi-squared-type mixture have the same normal or non-normal limiting distribution.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Zhu T, Zhang J (2022). “Linear hypothesis testing in high-dimensional one-way MANOVA: a new normal reference approach.” Computational Statistics, 37(1), 1–27. doi:10.1007/s00180-021-01110-6.
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) G <- cbind(diag(k-1),rep(-1,k-1)) ZZ2022.GLHT.3cNRT(Y,G,n,p)
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) G <- cbind(diag(k-1),rep(-1,k-1)) ZZ2022.GLHT.3cNRT(Y,G,n,p)
Zhang and Zhu (2022)'s test for general linear hypothesis testing (GLHT) problem for high-dimensional data under heteroscedasticity.
ZZ2022.GLHTBF.3cNRT(Y,G,n,p)
ZZ2022.GLHTBF.3cNRT(Y,G,n,p)
Y |
A list of |
G |
A known full-rank coefficient matrix ( |
n |
A vector of |
p |
The dimension of data. |
Suppose we have the following independent high-dimensional samples:
It is of interest to test the following GLHT problem:
where
is a
matrix collecting
mean vectors and
is a known full-rank coefficient matrix with
.
Let be the sample mean vectors and
be the sample covariance matrices.
Zhang and Zhu (2022) proposed the following U-statistic based test statistic:
where ,
, and
is the
th entry of the
matrix
.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Zhang J, Zhu T (2022). “A new normal reference test for linear hypothesis testing in high-dimensional heteroscedastic one-way MANOVA.” Computational Statistics & Data Analysis, 168, 107385. doi:10.1016/j.csda.2021.107385.
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) G <- cbind(diag(k-1),rep(-1,k-1)) ZZ2022.GLHTBF.3cNRT(Y,G,n,p)
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) G <- cbind(diag(k-1),rep(-1,k-1)) ZZ2022.GLHTBF.3cNRT(Y,G,n,p)
Zhang and Zhu (2022)'s test for testing equality of two-sample high-dimensional mean vectors with assuming that two covariance matrices are the same.
ZZ2022.TS.3cNRT(y1, y2)
ZZ2022.TS.3cNRT(y1, y2)
y1 |
The data matrix ( |
y2 |
The data matrix ( |
Suppose we have two independent high-dimensional samples:
The primary object is to test
Zhang et al.(2022) proposed the following test statistic:
where are the sample mean vectors and
is the pooled sample covariance matrix.
They showed that under the null hypothesis,
and a chi-squared-type mixture have the same normal or non-normal limiting distribution.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Zhang J, Zhu T (2022). “A revisit to Bai–Saranadasa's two-sample test.” Journal of Nonparametric Statistics, 34(1), 58–76. doi:10.1080/10485252.2021.2015768.
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients ZZ2022.TS.3cNRT(group1, group2)
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients ZZ2022.TS.3cNRT(group1, group2)
Zhang and Zhu (2022)'s test for testing equality of two-sample high-dimensional mean vectors without assuming that two covariance matrices are the same.
ZZ2022.TSBF.3cNRT(y1, y2)
ZZ2022.TSBF.3cNRT(y1, y2)
y1 |
The data matrix ( |
y2 |
The data matrix ( |
Suppose we have two independent high-dimensional samples:
The primary object is to test
Zhang and Zhu (2022) proposed the following test statistic:
where are the sample mean vectors and
is the estimator of
.
They showed that under the null hypothesis,
and a chi-squared-type mixture have the same normal or non-normal limiting distribution.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Zhang J, Zhu T (2022). “A further study on Chen-Qin’s test for two-sample Behrens–Fisher problems for high-dimensional data.” Journal of Statistical Theory and Practice, 16(1), 1. doi:10.1007/s42519-021-00232-w.
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients ZZ2022.TSBF.3cNRT(group1, group2)
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients ZZ2022.TSBF.3cNRT(group1, group2)
Zhang et al. (2022)'s test for general linear hypothesis testing (GLHT) problem for high-dimensional data under heteroscedasticity.
ZZG2022.GLHTBF.2cNRT(Y,G,n,p)
ZZG2022.GLHTBF.2cNRT(Y,G,n,p)
Y |
A list of |
G |
A known full-rank coefficient matrix ( |
n |
A vector of |
p |
The dimension of data. |
Suppose we have the following independent high-dimensional samples:
It is of interest to test the following GLHT problem:
where
is a
matrix collecting
mean vectors and
is a known full-rank coefficient matrix with
.
Zhang et al. (2022) proposed the following test statistic:
where with
, and
with
being the sample mean vectors.
They showed that under the null hypothesis, and a chi-squared-type mixture have the same normal or non-normal limiting distribution.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Zhang J, Zhou B, Guo J (2022).
“Linear hypothesis testing in high-dimensional heteroscedastic one-way MANOVA: A normal reference -norm based test.”
Journal of Multivariate Analysis, 187, 104816.
doi:10.1016/j.jmva.2021.104816.
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) G <- cbind(diag(k-1),rep(-1,k-1)) ZZG2022.GLHTBF.2cNRT(Y,G,n,p)
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) G <- cbind(diag(k-1),rep(-1,k-1)) ZZG2022.GLHTBF.2cNRT(Y,G,n,p)
Zhang et al. (2021)'s test for testing equality of two-sample high-dimensional mean vectors without assuming that two covariance matrices are the same.
ZZGZ2021.TSBF.2cNRT(y1, y2)
ZZGZ2021.TSBF.2cNRT(y1, y2)
y1 |
The data matrix ( |
y2 |
The data matrix ( |
Suppose we have two independent high-dimensional samples:
The primary object is to test
Zhang et al.(2021) proposed the following test statistic:
where are the sample mean vectors.
They showed that under the null hypothesis,
and a chi-squared-type mixture have the same normal or non-normal limiting distribution.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Zhang J, Zhou B, Guo J, Zhu T (2021). “Two-sample Behrens-Fisher problems for high-dimensional data: A normal reference approach.” Journal of Statistical Planning and Inference, 213, 142–161. doi:10.1016/j.jspi.2020.11.008.
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients ZZGZ2021.TSBF.2cNRT(group1, group2)
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients ZZGZ2021.TSBF.2cNRT(group1, group2)
Zhang et al. (2020)'s test for testing equality of two-sample high-dimensional mean vectors with assuming that two covariance matrices are the same.
ZZZ2020.TS.2cNRT(y1, y2)
ZZZ2020.TS.2cNRT(y1, y2)
y1 |
The data matrix ( |
y2 |
The data matrix ( |
Suppose we have two independent high-dimensional samples:
The primary object is to test
Zhang et al.(2020) proposed the following test statistic:
where are the sample mean vectors,
is the diagonal matrix of sample covariance matrix.
They showed that under the null hypothesis,
and a chi-squared-type mixture have the same limiting distribution.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Zhang L, Zhu T, Zhang J (2020). “A simple scale-invariant two-sample test for high-dimensional data.” Econometrics and Statistics, 14, 131–144. doi:10.1016/j.ecosta.2019.12.002.
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients ZZZ2020.TS.2cNRT(group1,group2)
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients ZZZ2020.TS.2cNRT(group1,group2)
Zhu et al. (2022)'s test for general linear hypothesis testing (GLHT) problem for high-dimensional data with assuming that underlying covariance matrices are the same.
ZZZ2022.GLHT.2cNRT(Y,X,C,n,p)
ZZZ2022.GLHT.2cNRT(Y,X,C,n,p)
Y |
A list of |
X |
A known |
C |
A known matrix of size |
n |
A vector of |
p |
The dimension of data. |
A high-dimensional linear regression model can be expressed as
where is a
unknown parameter matrix and
is an
error matrix.
It is of interest to test the following GLHT problem
Zhu et al. (2022) proposed the following test statistic:
where and
are the variation matrices due to the hypothesis and error, respectively, and
is the diagonal matrix with the diagonal elements of
.
They showed that under the null hypothesis,
and a chi-squared-type mixture have the same limiting distribution.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Zhu T, Zhang L, Zhang J (2023). “Hypothesis Testing in High-Dimensional Linear Regression: A Normal Reference Scale-Invariant Test.” Statistica Sinica. doi:10.5705/ss.202020.0362.
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) X <- matrix(c(rep(1,n[1]),rep(0,sum(n)),rep(1,n[2]), rep(0,sum(n)), rep(1,n[3]),rep(0,sum(n)),rep(1,n[4])),ncol=k,nrow=sum(n)) q <- k-1 C <- cbind(diag(q),-rep(1,q)) ZZZ2022.GLHT.2cNRT(Y,X,C,n,p)
library("HDNRA") data("corneal") dim(corneal) group1 <- as.matrix(corneal[1:43, ]) ## normal group group2 <- as.matrix(corneal[44:57, ]) ## unilateral suspect group group3 <- as.matrix(corneal[58:78, ]) ## suspect map group group4 <- as.matrix(corneal[79:150, ]) ## clinical keratoconus group p <- dim(corneal)[2] Y <- list() k <- 4 Y[[1]] <- group1 Y[[2]] <- group2 Y[[3]] <- group3 Y[[4]] <- group4 n <- c(nrow(Y[[1]]),nrow(Y[[2]]),nrow(Y[[3]]),nrow(Y[[4]])) X <- matrix(c(rep(1,n[1]),rep(0,sum(n)),rep(1,n[2]), rep(0,sum(n)), rep(1,n[3]),rep(0,sum(n)),rep(1,n[4])),ncol=k,nrow=sum(n)) q <- k-1 C <- cbind(diag(q),-rep(1,q)) ZZZ2022.GLHT.2cNRT(Y,X,C,n,p)
Zhang et al. (2023)'s test for testing equality of two-sample high-dimensional mean vectors without assuming that two covariance matrices are the same.
ZZZ2023.TSBF.2cNRT(y1, y2, cutoff)
ZZZ2023.TSBF.2cNRT(y1, y2, cutoff)
y1 |
The data matrix ( |
y2 |
The data matrix ( |
cutoff |
An empirical criterion for applying the adjustment coefficient |
Suppose we have two independent high-dimensional samples:
The primary object is to test
Zhang et al.(2023) proposed the following test statistic:
where are the sample mean vectors, and
with
.
They showed that under the null hypothesis,
and a chi-squared-type mixture have the same limiting distribution.
A list of class "NRtest"
containing the results of the hypothesis test. See the help file for NRtest.object
for details.
Zhang L, Zhu T, Zhang J (2023). “Two-sample Behrens–Fisher problems for high-dimensional data: a normal reference scale-invariant test.” Journal of Applied Statistics, 50(3), 456–476. doi:10.1080/02664763.2020.1834516.
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients ZZZ2023.TSBF.2cNRT(group1,group2,cutoff=1.2)
library("HDNRA") data("COVID19") dim(COVID19) group1 <- as.matrix(COVID19[c(2:19, 82:87), ]) ## healthy group group2 <- as.matrix(COVID19[-c(1:19, 82:87), ]) ## COVID-19 patients ZZZ2023.TSBF.2cNRT(group1,group2,cutoff=1.2)