View source: R/tsp.ty_causality.R
tsp.toda_yamamoto | R Documentation |
Toda and Yamamoto Causality Test
tsp.toda_yamamoto( data, p = NULL, d = NULL, criteria = c("aic", "hq", "sc", "fpe"), test = c("adf", "kpss", "pp"), ... )
data |
object of class mts created with ts() |
p |
lag order for VAR, use vars::VARselect(), if NULL (default) automatic value is calculated |
d |
max integration order I(d), if NULL (default) automatic value is calculated |
criteria |
information criteria for automatic p order, used in vars::VARselect() |
test |
Type of unit root test to use for automatic d value, used in forecast::ndiffs() |
... |
extra parameters used in vars::VAR() |
list object with VAR and Toda-Yamamoto causality test
library(tseries.plot) library(vars) data("Canada") tsp.toda_yamamoto(Canada,1,1,type="both")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.