Learn R Programming

ShrinkCovMat (version 1.1.2)

targetselection: Target Matrix Selection

Description

Implements the rule of thumb proposed by Touloumis (2015) for target matrix selection. If the estimated optimal shrinkage intensities of the three target matrices are of similar magnitude, then the average and the range of the sample variances should be inspected in order to adopt the most plausible target matrix.

Usage

targetselection(data, centered = FALSE)

Arguments

data

a numeric matrix containing the data.

centered

a logical indicating if the mean vector is the zero vector.

Value

Prints the estimated optimal shrinkage intensities and the range and the average of the sample variances.

Details

The rows of the data matrix data correspond to variables and the columns to subjects.

References

Touloumis, A. (2015) Nonparametric Stein-type Shrinkage Covariance Matrix Estimators in High-Dimensional Settings. Computational Statistics & Data Analysis 83, 251--261.

Examples

Run this code
# NOT RUN {
data(colon)
normal.group <- colon[,1:40]
targetselection(normal.group)
## Similar intensities, the range of the sample variances is small 
## and the average is not close to one. The scaled identity matrix 
## seems to be the most suitable target matrix for the normal group

colon.group <- colon[,41:62]
targetselection(colon.group)
## Similar intensities, the range of the sample variances is small 
## and the average is not close to one. The scaled identity matrix 
## seems to be the most suitable target matrix for the colon group
# }

Run the code above in your browser using DataLab