var_shrinkage: Shrinkage-based estimator of variances for each feature from...

Description Usage Arguments Value References

View source: R/stein-shrinkage.r

Description

This function computes the shrinkage-based estimator of variance of each feature (variable) from Pang et al. (2009) for the SDLDA classifier.

Usage

1
var_shrinkage(N, K, var_feature, num_alphas = 101, t = -1)

Arguments

N

the sample size.

K

the number of classes.

var_feature

a vector of the sample variances for each feature.

num_alphas

The number of values used to find the optimal amount of shrinkage.

t

a constant specified by the user that indicates the exponent to use with the variance estimator. By default, t = -1 as in Pang et al. See the paper for more details.

Value

a vector of the shrunken variances for each feature.

References

Pang, H., Tong, T., & Zhao, H. (2009). "Shrinkage-based Diagonal Discriminant Analysis and Its Applications in High-Dimensional Data," Biometrics, 65, 4, 1021-1029. http://onlinelibrary.wiley.com/doi/10.1111/j.1541-0420.2009.01200.x/abstract


sparsediscrim documentation built on Aug. 14, 2017, 5:10 p.m.