R/int.bernstein.r

int.bernstein <- function(penden.env,Y) {
  int.base <- matrix(0,length(Y),(get("K",penden.env)+1))
  index.k <- matrix(1:length(Y))
  for(j in 1:(get("K",penden.env)+1)) int.base[,j] <- spline(get(x="x.help",penden.env),y=get("int.base",penden.env)[,j],xout=Y)$y
  return(int.base)
}

Try the penDvine package in your browser

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

penDvine documentation built on May 2, 2019, 1:06 p.m.