glassoscore(x, lambda, subset=NULL, penalize.diagonal=FALSE, tol=1e-8)
mbscore(x, lambda, subset=NULL, tol=1e-8,...)
For mbscore, the results are typically not symmetric. For instance, p.sand[-i,i] contains the p-values produced by lassoscore(x[,i],x[,-i],lambda)
, i.e. using x[,i] as the outcome variable, and thus p.sand[i,-i] contains p-values associated with feature i when used as the a predictor variable.
N. Meinshausen and P. Buhlmann. High-dimensional graphs and variable selection with the lasso. Annals of Statistics, 34(3):1436-1462, 2006.
set.seed(100)
x<-matrix(rnorm(50*20),ncol=20)
gl <- glassoscore(x,0.2)
mb <- mbscore(x,0.2)
par(mfrow=c(1,2))
plot(gl)
plot(mb)
Run the code above in your browser using DataLab