Description Usage Arguments Value Note
Calculates sparse solutions to the multivariate regression problem with correlated errors. Let X be the n-by-p predictor matrix, Y be the n-by-q response matrix, B be the p-by-q regression matrix, and Ω be the q-by-q precision matrix (inverse of the covariance matrix Σ). Let s1 be a sparsity parameter that only allows the top s1 values for B in aboslute value be nonzero, and lets s2 be defined similarly for Ω. Then this functions calculates the solution to
(B_hat,Ω_hat) = argmin_(B,Ω) (1/n*Tr[(Y-XB)^T*Ω*(Y-XB)] - log|Ω
|) such that ||B||_(1,1) ≤ s1 and ||Ω||_(1,1) ≤ s2. Here || * ||_(1,1) indicates the 1-1 "norm" that counts the number of nonzero matrix entries.
1 2 |
X |
n-by-p predictor matrix |
Y |
n-by-q response matrix |
s1 |
sparsity for p-by-q regressor matrix |
s2 |
sparsity for q-by-q precision matrix |
s1_vec |
|
s2_vec |
|
method |
method of solver ('single' is to solve a single problem, 'gs' is to perform gridsearch) |
pars |
list of algorithm parameters as constructed by the |
quiet |
whether not to print statuses to the screen (bool) |
seed |
set random seed (integer or NULL) |
A list containing the mean
and sd
of the
error over the replicates as well as the means and standard
deviations of the errors across each fold.
See also set_parameters
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.