R/make_coef.R

Defines functions make_coef

Documented in make_coef

make_coef <- function(object){
	bhat <- object$b
	np <- object$np
	p <- object$p
	bhat.mat <- Matrix(bhat, nrow = p + 1, sparse = TRUE)
	bhat.mat <- bhat.mat[, 1:np, drop=FALSE]
	vname <- c("Int.",colnames(object$X))
	rownames(bhat.mat) <- vname
	bhat.mat
}

Try the dglars package in your browser

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

dglars documentation built on Oct. 10, 2023, 1:08 a.m.