nonzero.glmnetcr <- function(fit,s) { a0<-fit$a0[s] beta<-fit$beta[,s] beta<-beta[beta!=0] list(a0=a0,beta=beta) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.