Ridge estimation for high-dimensional precision matrices with known sign of off-diagonal precision elements.
Function that calculates the ridge estimators for high-dimensional precision matrices with known sign of the off-diagonal precision elements.
ridgePsign( S, lambda, sign, target = default.target(S), type = "Alt", method = "nlm", verbose = TRUE, ... )
S |
Sample covariance |
lambda |
A |
sign |
A character indicating the required sign of the off-diagonal elements of ridge precision estimate. Must be either: "pos" (positive) and "neg" (negative). |
target |
A target |
type |
A |
method |
A |
verbose |
|
... |
Additional arguments passed on to either
|
Modified version of the ridgePchordal-function, now the ridge
precision matrix estimate has off-diagonal elements equalling zero or of the
specified sign. The estimate is found by solving a constrained estimation
problem. This is done numerically and employs the
nlminb and
constrOptim procedure of R. These
procedures are initiated by the ridge ML precision estimate and its
off-diagonal elements with the excluded sign set to (effectively) zero.
The function returns a regularized precision matrix with
off-diagonal elements of specified signed or zero.
W.N. van Wieringen.
# obtain some data p <- 8 n <- 100 set.seed(333) Y <- matrix(rnorm(n*p), nrow = n, ncol = p) # obtain regularized precision matrix with off-diagonal elements of specified signed ridgePsign(covML(Y), lambda=0.1, sign="pos")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.