haff_cov: Stein/Haff's covariance estimator

Description Usage Arguments Value References Examples

View source: R/stcov.R

Description

Stein/Haff's covariance estimator

Usage

1
haff_cov(S, n)

Arguments

S

Sample covariance matrix

n

Number of observations

Value

Estimated covariance matrix

References

Haff, L. R. "The Variational Form of Certain Bayes Estimators." The Annals of Statistics 19, no. 3 (1991): 1163-1190.

Lin, S.P. and Perlman, M.D.. "A Monte Carlo comparison of four estimators of a covariance matrix." Multivariate Analysis 6 (1985): 411-429.

Stein, C. "Estimation of a covariance matrix". Rietz Lecture (1975).

Examples

1
2
3
4
p <- 5
n <- 10
S <- rWishart(1, n, diag(p))[,,1]
haff_cov(S, n)

stcov documentation built on May 29, 2017, 9:14 a.m.