rda_cov: Calculates the RDA covariance-matrix estimators for each...

Description Usage Arguments Value References

View source: R/helper-cov.r

Description

For the classes given in the vector y, this function calculates the class covariance-matrix estimators employed in the HDRDA classifier, implemented in rda_high_dim().

Usage

1
rda_cov(x, y, lambda = 1)

Arguments

x

Matrix or data frame containing the training data. The rows are the sample observations, and the columns are the features. Only complete data are retained.

y

vector of class labels for each training observation

lambda

the RDA pooling parameter. Must be between 0 and 1, inclusively.

Value

list containing the RDA covariance-matrix estimators for each class given in y

References

Ramey, J. A., Stein, C. K., and Young, D. M. (2013), "High-Dimensional Regularized Discriminant Analysis."


sparsediscrim documentation built on July 1, 2021, 9:07 a.m.