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

nobs.GNARfit

Function to return the number of observations input to GNARfit objects


Description

nobs returns the number of obervations (T) of the input multivariate time series in the GNARfit function.

Usage

## S3 method for class 'GNARfit'
nobs(object,...)

Arguments

object

the output of a GNARfit or GNARpredict call

...

additional arguments, unused here.

Details

S3 method for class "GNARfit".

Value

An integer specifying the number of rows in the input vts to the GNARfit function.

Examples

#observations of example fiveVTS
nobs(GNARfit())
#check this is the same as number of rows in fiveVTS
all.equal(nobs(GNARfit()), nrow(fiveVTS))

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.