residuals | R Documentation |
Returns the residuals of a VAR(p)-model or for a VECM in levels. For
the former class the residuals-method is applied to the list
element varresult
, which is itself a list of lm
-objects.
## S3 method for class 'varest'
residuals(object, ...)
## S3 method for class 'vec2var'
residuals(object, ...)
object |
An object of class ‘ |
... |
Currently not used. |
Bernhard Pfaff
Hamilton, J. (1994), Time Series Analysis, Princeton University Press, Princeton.
Lütkepohl, H. (2006), New Introduction to Multiple Time Series Analysis, Springer, New York.
VAR
, vec2var
## Not run:
data(Canada)
var.2c <- VAR(Canada, p = 2, type = "const")
resid(var.2c)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.