1 #' Similar to discardSimilarModels, for Lasso-rank procedure (focus on columns)
3 #' @param B1 array of relevant coefficients (of size p*m*length(gridlambda))
4 #' @param rho covariance matrix
5 #' @param pi weight parameters
7 #' @return a list with B1, in, rho, pi
10 discardSimilarModels2 = function(B1,rho,pi)
13 B2 = array(0,dim=c(dim_B1[1],dim_B1[2],dim_B1[3]))
15 glambda = rep(0,sizeLambda)
17 suppressmodel = discardSimilarModels(B1,B2,glambda,rho,pi)
18 return (list(B1 = suppressmodel$B1, ind = suppressmodel$ind,
19 rho = suppressmodel$rho, pi = suppressmodel$pi))