cm13: One-Sample Covariance Test by Cai and Ma (2013)

View source: R/cm13.R

cm13R Documentation

One-Sample Covariance Test by Cai and Ma (2013)

Description

Performs a one-sample covariance matrix test based on the procedure proposed by Cai and Ma (2013).

Usage

cm13(X, Sigma0, alpha)

Arguments

X

An n \times p numeric data matrix. Each row represents an observation.

Sigma0

A specified p \times p covariance matrix.

alpha

The significance level.

Details

The null hypothesis is

H_0: \Sigma = \Sigma_0

where \Sigma denotes the population covariance matrix and \Sigma_0 denotes the hypothesized covariance matrix.

Value

A named list containing:

statistic

The calculated test statistic.

threshold

The critical value for rejection.

reject

A logical value indicating whether the null hypothesis is rejected.

Examples

set.seed(123)
n <- 30
p <- 5
X <- matrix(rnorm(n * p), nrow = n)
Sigma0 <- diag(p)
cm13(X, Sigma0, alpha = 0.05)


Docovt documentation built on Oct. 19, 2026, 5:06 p.m.

Related to cm13 in Docovt...