Description Usage Arguments Examples
Nonlinear ARDL function
1 |
formula |
food~inf or food~inf|I(inf^2) |
data |
the dataframe |
ic |
: c("aic","bic") criteria model selection |
maxlag |
maximum lag number |
graph |
TRUE to show stability tests plot |
case |
case number 3 for (unrestricted intercert, no trend) and 5 (unrestricted intercept, unrestricted trend), 1 2 and 4 not supported |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ############################################
# Fit the nonlinear cointegrating autoregressive distributed lag model
############################################
# Load data
data(fod)
############################################
# example 1:auto selected lags (maxlags=TRUE)
############################################
reg<-nardl(food~inf,fod,ic="aic",maxlag = 4,graph = FALSE,case=3)
summary(reg)
############################################
# example 2: Cusum and CusumQ plot (graph=TRUE)
############################################
reg<-nardl(food~inf,fod,ic="aic",maxlag = 4,graph = TRUE,case=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.