R/predict.KERE.R

Defines functions predict.KERE

Documented in predict.KERE

predict.KERE <- function(object, kern, x, newx,...) {
  nfit <- kernelMult(kern, newx, x, object$alpha[-1,])
  nfit <- sweep(nfit, MARGIN = 2, object$alpha[1,], "+")
  nfit
}

Try the KERE package in your browser

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

KERE documentation built on May 1, 2019, 8:01 p.m.