get.BxBy {LassoNet} | R Documentation |
Computes decomposition elements.
Description
Computes matrices B^{ij}_X
and B^{ij}_y
to speed up estimation of connection signs. These matrices are stored only for indices that have non zero entries in penalty matrix M.
Usage
get.BxBy(x, y, M)
Arguments
x |
Input data matrix of size |
y |
y Response vector or size |
M |
penalty matrix |
Details
Calculates matrices all for i and j indices that have non zero values in a given penalty matrix.
Value
Bx |
array of |
By |
array of |
Author(s)
Maintainer: Jonas Striaukas <jonas.striaukas@gmail.com>
References
Weber, M., Striaukas, J., Schumacher, M., Binder, H. "Network-Constrained Covariate Coefficient and Connection Sign Estimation" (2018) <doi:10.2139/ssrn.3211163>
Examples
p<-200
n<-100
x<-matrix(rnorm(n*p),n,p)
y<-rnorm(n,mean=0,sd=1)
M<-diag(p)
get.BxBy(x, y, M)