Learn R Programming

ShrinkCovMat (version 1.0.2)

targetselection: Rule of Thumb for Target Matrix Selection

Description

This function implements the rule of thumb proposed for selecting the target matrix proposed by Touloumis(2014). This is useful when the optimal shrinkage intensities for the three target matrices are of similar magnitude. If so, one could inspect the average and the range of the sample variances in order to adopt one of the three target matrices.

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. (2014). Nonparametric Stein-type Shrinkage Covariance Matrix Estimators in High-Dimensional Settings. To appear in Computational Statistics and Data Analysis, http://arxiv.org/abs/1410.4726.

Examples

Run this code
data(colon)
normal.group <- colon[,1:40]
colon.group <- colon[,41:62]
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 appropriate target matrix for the normal
## group
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 appropriate target matrix for the colon
## group

Run the code above in your browser using DataLab