Implement DECODE for sigma and beta to estimate \(\Sigma^{-1}\beta\) where sigma is an estimator of \(\Sigma\) and beta is an estimator of \(\beta\).
decode(sigma, beta, lambda0, decode.tol = 1e-06, decode.maxit = 100,
trace = FALSE, solver = c("apg", "homotopy"), solver.tol = 1e-08,
solver.maxit = 10000, return.sigma = FALSE, return.beta = FALSE,
return.param = FALSE)\(p \times p\) positive semidefinite symmetric matrix. sigma will be perturbed if needed.
\(p\)-length vector.
number between 0 and 1.
error tolerance for DECODE.
maximum iterations for DECODE
logical. If TRUE, will return \(\eta\), \(\theta\), and \(\lambda\) found during each iteration of DECODE
solver for \(\ell_1\)-RQP problem inside DECODE.
tolerance for solver.
maximum iterations for solver (only for APG).
logical. If TRUE the sigma entered is returned.
logical. If TRUE the beta entered is returned.
logical. If TRUE the parameters used are returned.
An object of class decode containing:
DECODE of \(\Sigma^{-1}\beta\).
final \(\theta\) of the DECODE.
final \(\lambda\) of the DECODE.
multiplier applied on sigma to ensure convergence.
number of iterations until convergence.
the matched call.
the solver used, if requested.
the lambda0 entered, if requested.
the decode.tol used, if requested.
the decode.maxit used, if requested.
the trace used, if requested.
the solver.tol used, if requested.
the solver.maxit used, if requested.
matrix of \(\eta\) used in each iteration, if requested.
vector of \(\theta\) used in each iteration, if requested.
vector of \(\lambda\) used in each iteration, if requested.
Pun, C. S. (2018). A Sparse Learning Approach to Relative-Volatility-Managed Portfolio Selection. Hadimaja, M. Z., & Pun, C. S. (2018). A Self-Calibrated Regularized Direct Estimation for Graphical Selection and Discriminant Analysis.
# NOT RUN {
# estimate A^(-1) b with a certain lambda0
X <- matrix(rnorm(100), 10, 10)
A <- t(X) %*% X
b <- rnorm(10)
object <- decode(A, b, lambda0 = 0.8)
object
summary(object)
coef(object)
# }
Run the code above in your browser using DataLab