residToMat | R Documentation |
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)
GNARobj |
the output from the GNARfit function |
nnodes |
the number of nodes in the original network time series |
This function also replaces the NAs that were removed in fitting.
resid |
is the matrix of residual values, with |
fit |
is the matrix of fitted values, with |
#Get residual and fitted matrices from GNARpredict fit of fiveVTS
residToMat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.