Last chance! 50% off unlimited learning
Sale ends in
This function is now deprecated. Please use ridgeP
instead.
ridgeS(S, lambda, type = "Alt", target = default.target(S))
Sample covariance matrix
.
A numeric
representing the value of the penalty parameter.
A character
indicating the type of ridge estimator to be used. Must be one of: "Alt", "ArchI", "ArchII".
A target matrix
(in precision terms) for Type I ridge estimators.
Function returns a regularized precision matrix
.
See ridgeP
.
# NOT RUN {
## Obtain some (high-dimensional) data
p = 25
n = 10
set.seed(333)
X = matrix(rnorm(n*p), nrow = n, ncol = p)
colnames(X)[1:25] = letters[1:25]
Cx <- covML(X)
## Obtain regularized precision matrix
ridgeS(Cx, lambda = 10, type = "Alt")
# }
Run the code above in your browser using DataLab