Description Usage Arguments Details Value See Also Examples
Searchs for the best ARDL model, given maximum lag for the explained variable y
and regressors x
.
1 2 |
formula |
Formula as in |
data |
A dataframe or time referenced object with data in columns. |
subset |
(optional) Filter rows from the dataframe. Defaults to |
ymax |
(optional) Maximum lag of the dependent variable |
xmax |
(optional) Maximum lag of the explaining variable(s) |
case |
(optional) Number of the case according to PSS (2001) to chose which table to use. |
ic |
(optional) Information criteria used for selection. Can be |
verbose |
(optional) Lists all the models tested. Defaults to FALSE. |
This function selects the models to test, the actual estimation is done by ardl()
.
An object of class ardl
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data(br_month)
# show the selection process with verbose=TRUE
taylor0 <- auto.ardl( mpr~cpi+prod+reer, data=br_month, ymax=4, xmax=c(4,4,4), verbose=TRUE )
summary( taylor0 )
# note the differences by varying the case (intercept and trend) specification
phillips1 <- auto.ardl( cpi~mpr+prod+reer|d_lula, data=br_month, ymax=4, xmax=c(4,4,4), case=1 )
phillips2 <- auto.ardl( cpi~mpr+prod+reer|d_lula, data=br_month, ymax=4, xmax=c(4,4,4), case=3 )
phillips3 <- auto.ardl( cpi~mpr+prod+reer|d_lula, data=br_month, ymax=4, xmax=c(4,4,4), case=5 )
BIC(phillips1) # 86.42611 best!
BIC(phillips2) # 91.0541
BIC(phillips3) # 92.84055
# change the information criteria
phillips4 <- auto.ardl( cpi~mpr+prod+reer|d_lula, data=br_month, ymax=4, xmax=c(4,4,4), ic="aic" )
phillips5 <- auto.ardl( cpi~mpr+prod+reer|d_lula, data=br_month, ymax=4, xmax=c(4,4,4), ic="r2" )
phillips6 <- auto.ardl( cpi~mpr+prod+reer|d_lula, data=br_month, ymax=4, xmax=c(4,4,4), ic="bic" )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.