R/predband.scproc.R

##' @export
`predband` <-
  function(x,...) UseMethod("predband")

predband.scproc <- function(x, idx=1:length(x$variable), level=0.95, cval=NULL, ...) {
  t <- c(); yu <- c()
  for (i in idx) {
    if (is.null(cval))
      cval <- quantile(x$cvalues[,,i], level)
    t <- cbind(t,x$obs[,,i])
    yu <- cbind(yu,cval*x$sd[,,i]);
  }
  return(list(t=t,yu=yu));
}

Try the goftte package in your browser

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

goftte documentation built on May 2, 2019, 5:12 a.m.