ardl-modeling-using-r-software
ardl-modeling-using-r-software
Sami Mestiri*
University of Monastir, Tunisia. Rue Ibn Sina Hiboun, *
Corresponding Author
Mahdia Tunisia. Sami Mestiri, University of Monastir, Tunisia. Rue Ibn Sina Hiboun, Mahdia
Tunisia.
Submitted: 2023, Dec 12; Accepted: 2024, Jan 09; Published: 2024, Feb 13
Citation: Mestiri, S. (2024). ARDL Modeling Using R Software. J Curr Trends Comp Sci Res, 3(1), 01-05.
Abstract
The goal of this paper is helping to apply ARDL models using the R software. We will cover its benefits, show how to use the
packages and will make interesting recommendations for estimating models ARDL using R.
This paper presents the dynamac package for the statistical language R, demonstrating its main functionalities in a step by
step guide.
Given that all series appear to be I(1), we proceed with estimating a model in dy-
nardl in error correction form, and then Table testing for Root
1: Unit cointegration
Tests between concern about
inequality and the share of income of the top 10 percent. In general, we suggest using
Given that all series appear to be I(1), we proceed with estimating income of the top 10 percent. In general, we suggest using this
athis strategy
model in dynardloutlined in Philips
Given
in error correction that (2018)
all
form, along
andseries
then with
appear
testing for alternative
tostrategy
be I(1), tests
we in
outlined for cointegration.
proceed
Philips along Our
with estimating
(2018) a model
with alternative in dy-
tests
error-correction model
cointegration between concern appears
nardl about
in error as:
correction
inequality and the form,
share ofandforthen testing Our
cointegration. for error-correction
cointegrationmodel
between concern
appears as: about
inequality and the share of income of the top 10 percent. In general, we suggest using
∆Concernt = a0+φ 1 Concern
this strategyt−1 +∆1 IncomeT
outlined in Philips op10 t−1 +βalong
(2018) 1 ∆IncomeT op10t +β2 ∆U
with alternative nemployment
tests t +t
for cointegration. Our
error-correction model appears as:
where we assume t ∼ N (0, σ 2 ).
dynardl
dynardl is simply is simply
an engine an engine but
for regression, for regression, butusers
one that allows users to focus on the- rather than technical
∆Concernt = a0+φ1one that allows
Concern to focus on theoretical specification
t−1 +∆1 IncomeT op10t−1 +β1 ∆IncomeT op10t +β2 ∆U nemploym
oretical specification rather than technical
coding. All variables in the model are entered into the formula. coding. All variables in the model are entered
In this sense, dynardl can be used in any ARDL context, not just
into the
4be used
ones in which the formula.
user is also Inexpecting
this sense, dynardl can
cointegration testing in any ARDL
2 or dynamic context,estimate
simulations.We not justour
ones in
example model shown in
Equation which the user
using dynardl
where alsowe
as isfollows:
assume res1
expecting t ∼<-Ndynardl(concern
(0, σtesting
data(ineq)cointegration
). or∼dynamic
incshare10 simulations.We estimate
+ urate, data = ineq, lags = list("concern" = 1,
"incshare10"
our =example
1), diffs =model
c("incshare10",
shown in "urate"),
Equation using dynardl as follows:
ec = TRUE, simulate = FALSE )summary(res1)
data(ineq) 4
res1 <- dynardl(concern ∼ incshare10 + urate, data = ineq,
As shownlags
from=the regression results,
list("concern" = 1,dynardl has included
"incshare10" a constant, the lagged dependent variable, l.1.concern, the first difference
= 1),
of the twodiffs
regressors (Income Top 10 and
= c("incshare10", "urate"), Unemployment), as well as the lag of Income Top 10.
ec = TRUE, simulate = FALSE )
While changes in Income Top 10 affect changes in Concern in the short-run, changes in Unemployment do not have a statistically
summary(res1)
significant effect in the short-run. The lag of Income Top 10 is negative and statistically significant.
Table 3:
In our example, since the value of the F-statistic exceeds the 6Since the t-statistic of -3.684 falls below the 5% critical value
critical value at the upper I(1) bound of the test at the 1% I(1) threshold, this lends further support for cointegration. Taken
level, we may conclude that Income Top 10 and Concern about together, these findings indicate that there is a cointegrating
inequality are in a cointegrating relationship. As an auxiliary relationship between concern about inequality and the income
test, pssbounds displays a one-sided test on the t-statistic on the share of the top 10 percent, and that Equation 6 is appropriately
lagged dependent variable. specified.