R/nonzero.coef.R

Defines functions nonzero.coef

Documented in nonzero.coef

nonzero.coef <-
function(object, s) {
	estimates<-coef(object,s=s)
	keep<-estimates[estimates!=0]
	names(keep)<-dimnames(estimates)[[2]][estimates!=0]
	keep
	}

Try the glmpathcr package in your browser

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

glmpathcr documentation built on July 9, 2023, 6:57 p.m.