R/predict.scalreg.R

Defines functions predict.scalreg

Documented in predict.scalreg

predict.scalreg <-
function(object, newX=NULL,...) {
	if(is.null(newX))
		y = fitted(object)
	else{
		y=as.vector(newX%*%object$coefficients)
	}
	y
}

Try the scalreg package in your browser

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

scalreg documentation built on May 1, 2019, 10:55 p.m.