R/design.matrix.bsp.R

Defines functions design.matrix.bsp

design.matrix.bsp <-
function(formula, data) {
	mf <- model.frame(formula, data, drop.unused.levels = TRUE)
	mt <- terms(mf)   
	X <- model.matrix(mt, mf) # Includes the intercept
	res <- list(X = X, mf = mf, mt = mt)
	class(res) <- "design.matrix.bsp"
	res

}

Try the AROC package in your browser

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

AROC documentation built on March 18, 2022, 5:22 p.m.