R/nonzero.glmnetcr.R

Defines functions nonzero.glmnetcr

Documented in nonzero.glmnetcr

nonzero.glmnetcr <-
function(fit,s) {
	a0<-fit$a0[s]
	beta<-fit$beta[,s]
	beta<-beta[beta!=0]
	list(a0=a0,beta=beta)
}

Try the glmnetcr package in your browser

Any scripts or data that you put into this service are public.

glmnetcr documentation built on July 8, 2020, 6:21 p.m.