R/mypredict.R

Defines functions mypredict

Documented in mypredict

mypredict <- function(object, newx) {
  
  p <- length(object$meanx)
  drop(scale(newx, object$meanx, FALSE) %*% matrix(object$beta, nrow = p)) + object$mu
  
}

Try the HDCI package in your browser

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

HDCI documentation built on May 2, 2019, 4:48 a.m.