listToMatrix {HDPenReg} | R Documentation |
create a matrix with all estimated coefficients from the output of HDlars
or EMlasso
functions.
listToMatrix(x, row = c("covariates", "lambda"))
x |
a |
row |
if covariates, covariates are in row |
A sparse matrix containing the values of estimated coefficients for all penalty parameter and all covariates