Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predict.GNARfit

Prediction of a GNARfit object


Description

Predicts future observations from a GNARfit object, based on the fitted GNAR model.

Usage

## S3 method for class 'GNARfit'
predict(object, n.ahead=1, ...)

Arguments

object

the output of a GNARfit call

n.ahead

the time length of the predictions

...

further arguments passed to the simulate.GNARfit function, such as seed

Details

S3 method for class "GNARfit". This function calls simulate.GNARfit.

Value

A multivariate time series of dimension n.ahead x nnodes.

Examples

#simulate 5 future observations from fiveVTS
predict(GNARfit(), n.ahead=5)

GNAR

Methods for Fitting Network Time Series Models

v1.1.1
GPL-2
Authors
Kathryn Leeming [aut], Guy Nason [aut], Matt Nunes [aut, cre], Marina Knight [ctb]
Initial release
2020-11-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.