View source: R/main_function.R
computeResiduals | R Documentation |
Computes the residuals from a VAR model by subtracting the fitted values (obtained from the estimated coefficient matrices) from the original time series data.
computeResiduals(data, A)
data |
A numeric matrix of the original time series (observations in rows). |
A |
List. A list of VAR coefficient matrices (one for each lag). |
A numeric matrix of residuals.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.