R/predict.design.matrix.bsp.R

Defines functions predict.design.matrix.bsp

predict.design.matrix.bsp <-
function(object, newdata, ...) {
	mfp <- model.frame(object$mt, newdata, xlev = attr(object$mt, "xlev"))
	Xp <- model.matrix(object$mt, data = mfp, contrasts.arg = attr(object$mt, "contrast")) # Includes the intercept
	res <- list()
	res$X <- Xp
	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.