ardl_uecm {ardl.nardl}R Documentation

Estimate the ARDL and ARDL Error Correction Model.

Description

Estimate ARDL and ARDL error correction model, conduct the bounds test for cointegration

Usage

ardl_uecm(x, p_order = c(2), q_order, dep_var, order_l = 4, 
    graph_save = FALSE, expl_var, case = 3)

Arguments

x

A dataframe object. S3 dataframe object not applicable.

p_order

is the lag for the dependent variable (dep_var). Default value is c(2)

q_order

A numeric vector containing the lags for each explanatory variable. A vector of two lags (i.e c(3,4)) which corresponds to the expl_var (say c('x1','x2') where x1 has lag of 3 and x2 has lag of 4).

dep_var

Character vector containing one dependent variable

order_l

Positive integer. lag for the order of serial correlation and ARCH test.

graph_save

Logical (default is FALSE). If TRUE, stability plot is displayed as well.

expl_var

Character vector containing the explanatory variable(s).

case

A numerical vector that can take a value between 1 to 5. The default value is 3.

Value

ARDL_fit

This display the ARDL lm fit

ARDL_ECM_fit

This display the ARDL ECM lm fit

UECM

This display the summary results of the estimated unrestricted error correction models

UECM

This display the summary results of the estimated linear unrestricted error correction models

cointegration

This presents the Pesaran, Shin, and Smith (2001) cointegration test. The critical F and t statistics obtained if the sample is greater than 80 are asymptotic. If you adopt this segment, please consider citing Pesaran et al (2001) and Jordan and Philips (2020) dynamac package. If the sample is less than or equal to 80, for case 1, the F and t statistics adopted are large sample asymptotic critical value (CV) and no small-sample asymptotic critical value available. When case = 3 or 5, the critical value of F statistic is small sample asymptotic, and the adopted t statistics are large sample asymptotic CV. Consider including Narayan (2005) in your citation list. If the sample is greater than 80, for case 1, 3 and 5, large sample asymptotic CV for F and t statistics are adopted. In case 2 and 4, for sample <= 80, the F statistic are small sample asymptotic and no asymptotic CV for the t statistic. If sample > 80, for case 2 and 4, large sample asymptotic CV for F is adopted and no t-statistic CV.

Longrun_relation

The estimated longrun relations

diagnostics test

The diagnostic tests indicate the Breusch-Godfrey test for higher-order serial correlation (BG_SC_lm_test). The Engle (1982) test for conditional heteroscedasticity (LM_ARCH_test). The test for non-normality is that of Jarque and Bera (1980). The RESET null hypothesis adopted implies - including the 2nd - degree terms improve the fit (over the model specified). This ARCH LM function is derived from Zaghdoudi (2018)

References

Jordan S, Philips A (2020). _dynamac: Dynamic Simulation and Testing for Single-Equation /n ARDL Models_. R package version 0.1.11

Narayan, P. K. (2005). The saving and investment nexus for China: evidence from cointegration tests. Applied economics, 37(17), 1979-1990.

Pesaran, M. H., Shin, Y., & Smith, R. J. (2001). Bounds testing approaches to the analysis of level relationships. Journal of applied econometrics, 16(3), 289-326.

Zaghdoudi, T. (2018). nardl: Nonlinear Cointegrating Autoregressive Distributed Lag Model_. R package version 0.1.5

See Also

gets_ardl_uecm gets_nardl_uecm nardl_uecm nardl_uecm_sym

Examples

data(fuel_price)
uecm_case3 <- ardl_uecm(x = fuel_price,
                        p_order =c(6),
                        q_order =c(5,3),
                        dep_var = c('fpp'),
                        expl_var = c('bdc', 'wti'),
                        graph_save = FALSE,
                        case = 3)
uecm_case3
uecm_case3$cointegration
uecm_case3$Longrun_relation
uecm_case3$`diagnostics test`

uecm_case2 <- ardl_uecm(x = fuel_price,
                        p_order =c(3),
                        q_order =c(4),
                        dep_var = c('fpp'),
                        expl_var = c('wti'),
                        graph_save = TRUE,
                        case = 2)
uecm_case2
uecm_case2$cointegration
uecm_case2$Longrun_relation
uecm_case2$`diagnostics test`

[Package ardl.nardl version 1.3.0 Index]