R/predict.GNARfit.R

Defines functions predict.GNARfit

Documented in predict.GNARfit

predict.GNARfit <- function(object, n.ahead=1, ...){
  stopifnot(is.GNARfit(object))
  if(!is.null(object$frbic$fact.var)){
    stop("fact.var not currently supported with predict")
  }
  return(simulate.GNARfit(object, nsim=n.ahead, future=TRUE, set.noise=0, ...))
}

Try the GNAR package in your browser

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

GNAR documentation built on April 28, 2023, 1:12 a.m.