powered by
Unstacks the entries of the GNARfit fitted and residual values to return matrices of a similar form to the multivariate time series input.
residToMat(GNARobj=GNARfit(), nnodes=5)
is the matrix of residual values, with t-alphaOrder rows and nnodes columns.
t-alphaOrder
nnodes
is the matrix of fitted values, with t-alphaOrder rows and nnodes columns.
the output from the GNARfit function
the number of nodes in the original network time series
This function also replaces the NAs that were removed in fitting.
#Get residual and fitted matrices from GNARpredict fit of fiveVTS residToMat()
Run the code above in your browser using DataLab