R/Predict.matrix.nu.smooth.R

Defines functions Predict.matrix.nu.smooth

Predict.matrix.nu.smooth <- function(object, data)
{ 
  X <- Predict.matrix.pspline.smooth(object,data)
  if(is.null(object$xt$weights))
    h <- rep(1, nrow(X))
  else
    h <- object$xt$weights
  R <- NULL
  for(i in 1L:ncol(X)) {
    x <- X[,i] * h
    R <- cbind(R, x / sum(x))
  }
	
  return(R)
}

Try the R2BayesX package in your browser

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

R2BayesX documentation built on Oct. 20, 2023, 9:11 a.m.