R/predict.pspline.face.r

Defines functions predict.pspline.face

Documented in predict.pspline.face

predict.pspline.face <- function(object,argvals.new,...){
  
  #require(splines)
  stopifnot(class(object)=="pspline.face")
  
  knots <- object$knots
  p <- object$p
  B = spline.des(knots=knots, x = argvals.new, ord = p+1,outer.ok = TRUE,sparse=TRUE)$design
  return(as.vector(B%*%object$theta))
  
}

Try the face package in your browser

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

face documentation built on July 18, 2022, 5:07 p.m.