Package nardl. R topics documented: May 7, Type Package

Similar documents
Package polypoly. R topics documented: May 27, 2017

Package Tcomp. June 6, 2018

Package RTransferEntropy

Package reinforcedpred

Package tspi. August 7, 2017

Package HIMA. November 8, 2017

Package mctest. February 26, 2018

Package invgamma. May 7, 2017

Package SK. May 16, 2018

Package robustrao. August 14, 2017

Package bigtime. November 9, 2017

Government expense, Consumer Price Index and Economic Growth in Cameroon

Package NlinTS. September 10, 2018

ARDL Cointegration Tests for Beginner

Package scpdsi. November 18, 2018

Package TimeSeries.OBeu

Package SMFilter. December 12, 2018

Package dlagm. January 17, 2018

Package rnmf. February 20, 2015

Package netdep. July 10, 2018

Package effectfusion

Package TSPred. April 5, 2017

Package gwqs. R topics documented: May 7, Type Package. Title Generalized Weighted Quantile Sum Regression. Version 1.1.0

Package varband. November 7, 2016

Package rdefra. March 20, 2017

LATVIAN GDP: TIME SERIES FORECASTING USING VECTOR AUTO REGRESSION

Package ForecastCombinations

Package gtheory. October 30, 2016

Package covsep. May 6, 2018

Package RI2by2. October 21, 2016

Package FinCovRegularization

Package ShrinkCovMat

Package MultisiteMediation

Bristol Business School

Package MonoPoly. December 20, 2017

Package matrixnormal

Package sbgcop. May 29, 2018

Package leiv. R topics documented: February 20, Version Type Package

Package xdcclarge. R topics documented: July 12, Type Package

Package ltsbase. R topics documented: February 20, 2015

The Role of "Leads" in the Dynamic Title of Cointegrating Regression Models. Author(s) Hayakawa, Kazuhiko; Kurozumi, Eiji

Package aspi. R topics documented: September 20, 2016

Package EMVS. April 24, 2018

Package jmcm. November 25, 2017

Response surface models for the Elliott, Rothenberg, Stock DF-GLS unit-root test

Econ 423 Lecture Notes: Additional Topics in Time Series 1

Response surface models for the Elliott, Rothenberg, Stock DF-GLS unit-root test

Package Select. May 11, 2018

Package SpatialVS. R topics documented: November 10, Title Spatial Variable Selection Version 1.1

Package epr. November 16, 2017

Package ForwardSearch

Package nowcasting. April 25, Type Package

Package ADPF. September 13, 2017

Package cvequality. March 31, 2018

Package msu. September 30, 2017

Package PeriodicTable

Package clr. December 3, 2018

Package dominanceanalysis

Package funrar. March 5, 2018

Package milineage. October 20, 2017

Package WaveletArima

Package supernova. February 23, 2018

Package factorqr. R topics documented: February 19, 2015

Package exuber. June 17, 2018

Package BGGE. August 10, 2018

Package chemcal. July 17, 2018

Using EViews Vox Principles of Econometrics, Third Edition

Package BNN. February 2, 2018

Package RSwissMaps. October 3, 2017

Package IsingFit. September 7, 2016

Package skellam. R topics documented: December 15, Version Date

Package idmtpreg. February 27, 2018

Package sklarsomega. May 24, 2018

Oil price and macroeconomy in Russia. Abstract

Regime switching models

Package ARCensReg. September 11, 2016

Package noncompliance

Package RATest. November 30, Type Package Title Randomization Tests

Package kgc. December 21, Version Date Title Koeppen-Geiger Climatic Zones

Package platetools. R topics documented: June 25, Title Tools and Plots for Multi-Well Plates Version 0.1.1

Package blme. August 29, 2016

Package stability. R topics documented: August 23, Type Package

Package cartogram. June 21, 2018

Package REGARMA. R topics documented: October 1, Type Package. Title Regularized estimation of Lasso, adaptive lasso, elastic net and REGARMA

Package thief. R topics documented: January 24, Version 0.3 Title Temporal Hierarchical Forecasting

Package sindyr. September 10, 2018

Package JointModel. R topics documented: June 9, Title Semiparametric Joint Models for Longitudinal and Counting Processes Version 1.

Package breakaway. R topics documented: March 30, 2016

Package esreg. August 22, 2017

Package beam. May 3, 2018

Package BayesNI. February 19, 2015

Package clogitboost. R topics documented: December 21, 2015

Package MicroMacroMultilevel

Package pdr. May 16, 2015

Package TSF. July 15, 2017

Package flexcwm. R topics documented: July 2, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.1.

Package flexcwm. R topics documented: July 11, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.0.

Package EnergyOnlineCPM

Package RootsExtremaInflections

Package timelines. August 29, 2016

Transcription:

Type Package Package nardl May 7, 2018 Title Nonlinear Cointegrating Autoregressive Distributed Lag Model Version 0.1.5 Author Taha Zaghdoudi Maintainer Taha Zaghdoudi <zedtaha@gmail.com> Computes the nonlinear cointegrating autoregressive distributed lag model with p lags of the dependent variables and q lags of independent variables proposed by (Shin, Yu & Greenwood-Nimmo, 2014 <doi:10.1007/978-1-4899-8008-3_9>). License GPL-3 Encoding UTF-8 LazyData true RoxygenNote 6.0.1 Imports stats, strucchange, tseries, Formula, gtools Suggests testthat BugReports https://github.com/zedtaha/nardl/issues URL https://github.com/zedtaha/nardl NeedsCompilation no Repository CRAN Date/Publication 2018-05-07 17:03:14 UTC R topics documented: Nardl-package........................................ 2 ArchTest........................................... 2 bp2............................................. 3 cumsq............................................ 4 cusum............................................ 4 fod.............................................. 5 nardl............................................. 5 plotmplier.......................................... 6 pssbounds.......................................... 7 summary.nardl....................................... 8 1

2 ArchTest Index 10 Nardl-package Nonlinear Cointegrating Autoregressive Distributed Lag Model Details Computes the nonlinear cointegrating autoregressive distributed lag model with p lags of the dependent variable and q lags of independent variables proposed by (Shin, Yu & Greenwood-Nimmo, 2014 <doi:10.1007/978-1-4899-8008-3_9>). Package: Nardl Type: Package Version: 0.1.5 Date: 2018-05-07 License: GPL-3 In this package, we apply the ordinary least squares method to estimate the cointegrating nonlinear ARDL (NARDL) model in which short and long-run nonlinearities are introduced via positive and negative partial sum decompositions of the explanatory variables.besides, we provide the CUSUM, CUSUMSQ model stability tests, model selection via aic, bic and rsqaured criteria and the dynamic multipliers plot. Author(s) Taha Zaghdoudi Taha Zaghdoudi <zedtaha@gmail.com> References Shin, Y., Yu, B., Greenwood-Nimmo, M. (2011): Modelling asymmetric cointegration and dynamic multipliers in a nonlinear ARDL framework. Working paper http://ssrn.com/abstract= 1807745 ArchTest ARCH test Computes the Lagrange multiplier test for conditional heteroscedasticity of Engle (1982), as described by Tsay (2005, pp. 101-102).

bp2 3 ArchTest(x, lags = 12, demean = FALSE) x lags demean numeric vector positive integer number of lags logical: If TRUE, remove the mean before computing the test statistic. x<-reg$selresidu nlag<-reg$np ArchTest(x,lags=nlag) bp2 LM test for serial correlation LM test for serial correlation bp2(object, nlags, fill = NULL, type = c("f", "Chi2")) object fitted lm model nlags positive integer number of lags fill starting values for the lagged residuals in the auxiliary regression. By default 0. type Fisher or Chisquare statistics lm2<-bp2(reg$fit,reg$np,fill=0,type="f")

4 cusum cumsq Function cumsq Function cumsq cumsq(e, k, n) e k n is the recursive errors is the estimated coefficients length is the recursive errors length e<-reg$rece k<-reg$k n<-reg$n cumsq(e=e,k=k,n=n) cusum Function cusum Function cusum cusum(e, k, n) e k n is the recursive errors is the estimated coefficients length is the recursive errors length

fod 5 e<-reg$rece k<-reg$k n<-reg$n cusum(e=e,k=k,n=n) fod Indian yearly data of inflation rate and percentage food import to total import The data frame fod contains the following variables: food: percentage food import to total import inf: inflation rate year: the year data(fod) Format A data frame with 54 rows and 2 variables nardl Nonlinear ARDL function Nonlinear ARDL function nardl(formula, data, p = NULL, q = NULL, ic = c("aic", "bic", "ll", "R2"), maxlags = TRUE, graph = FALSE, case = 3)

6 plotmplier formula data p q ic maxlags graph case food~inf or food~inf I(inf^2) the dataframe lags of dependent variable lags of independent variables : c("aic","bic","ll","r2") criteria model selection if TRUE auto lags selection TRUE to show stability tests plot case number 3 for (unrestricted intercert, no trend) and 5 (unrestricted intercept, unrestricted trend), 1 2 and 4 not supported # Fit the nonlinear cointegrating autoregressive distributed lag model # Load data data(fod) #example 1: nardl with fixed p and q lags reg<-nardl(food~inf,p=4,q=4,fod,ic="aic",maxlags = FALSE,graph = FALSE,case=3) summary(reg) # example 2:auto selected lags (maxlags=true) reg<-nardl(food~inf,fod,ic="aic",maxlags = TRUE,graph = FALSE,case=3) summary(reg) # example 3: Cusum and CusumQ plot (graph=true) plotmplier Dynamic multiplier plot Dynamic multiplier plot plotmplier(model, np, k, h)

pssbounds 7 model np k h the fitted model the selected number of lags number of decomposed independent variables is the horizon over which multipliers will be computed ############################ # Dynamic multipliers plot ############################ # Load data data(fod) reg<-nardl(food~inf,p=4,q=4,fod,ic="aic",maxlags = FALSE,graph = TRUE,case=3) plotmplier(reg,reg$np,1,10) pssbounds pssbounds display the necessary critical values to conduct the Pesaran, Shin and Smith 2001 bounds test for cointegration. See http://andyphilips.github.io/pssbounds/. pssbounds(obs, fstat, tstat = NULL, case, k) obs fstat tstat case k number of observations value of the F-statistic value of the t-statistic case number number of regressors appearing in lag levels Details pssbounds is a module to display the necessary critical values to conduct the Pesaran, Shin and Smith (2001) bounds test for cointegration. Critical values using the F-test are the default; users can also include the critical values of the t-test with the tstat parameter. As discussed in Philips (2016), the upper and lower bounds of the cointegration test are nonstandard, and depend on the number of observations, the number of regressors appearing in levels, and the restrictions (if any) placed on the intercept and trend. Asymptotic critical values are

8 summary.nardl provided by Pesaran, Shin, and Smith (2001), and small-sample critical values by Narayan (2005). The following five cases are possible: I (no intercept, no trend), II (restricted intercept, no trend), III (unrestricted intercept, no trend), IV (unrestricted intercept, restricted trend), V (unrestricted intercept, unrestricted trend). See Pesaran, Shin and Smith (2001) for more details; Case III is the most common. More details are available at http://andyphilips.github.io/pssbounds/. Value None Author(s) Soren Jordan, <sorenjordanpols@gmail.com>, sorenjordan.com Andrew Q Philips, <aphilips@pols.tamu.edu>, people.tamu.edu/~aphilips/ References If you use pssbounds, please cite: Jordan, Soren and Andrew Q. Philips. "pss: Perform bounds test for cointegration and perform dynamic simulations." and Philips, Andrew Q. "Have your cake and eat it too? Cointegration and dynamic inference from autoregressive distributed lag models" Working Paper. Narayan, Paresh Kumar. 2005. "The Saving and Investment Nexus for China: Evidence from Cointegration Tests." Applied Economics 37(17):1979-1990. Pesaran, M Hashem, Yongcheol Shin and Richard J Smith. 2001. "Bounds testing approaches to the analysis of level relationships." Journal of Applied Econometrics 16(3):289-326. pssbounds(case=reg$case,fstat=reg$fstat,obs=reg$obs,k=reg$k) # F-stat concludes I(1) and cointegrating, t-stat concludes I(0). summary.nardl Summary of a nardl model summary method for a nardl model.

summary.nardl 9 ## S3 method for class 'nardl' summary(object,...) Value object... not used is the object of the function an object of the S3 class summary.nardl with the following components:

Index Topic ARDL pssbounds, 7 Topic bounds pssbounds, 7 Topic cointegration, pssbounds, 7 Topic datasets fod, 5 Topic test, pssbounds, 7 ArchTest, 2 bp2, 3 cumsq, 4 cusum, 4 fod, 5 Nardl (Nardl-package), 2 nardl, 5, 8 Nardl-package, 2 plotmplier, 6 pssbounds, 7 summary.nardl, 8 10