Package NlinTS. September 10, 2018

Similar documents
Package BNN. February 2, 2018

Package gtheory. October 30, 2016

Package invgamma. May 7, 2017

Package jmcm. November 25, 2017

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

Package bigtime. November 9, 2017

Package RTransferEntropy

Package EMVS. April 24, 2018

Package polypoly. R topics documented: May 27, 2017

Package dhsic. R topics documented: July 27, 2017

Package basad. November 20, 2017

Package esreg. August 22, 2017

Package HIMA. November 8, 2017

Package scpdsi. November 18, 2018

Package RI2by2. October 21, 2016

Package noncompliance

Package RZigZag. April 30, 2018

Package Tcomp. June 6, 2018

Package monmlp. R topics documented: December 5, Type Package

Package gma. September 19, 2017

Package varband. November 7, 2016

Package sbgcop. May 29, 2018

Package IndepTest. August 23, 2018

Package ShrinkCovMat

Package multdm. May 18, 2018

Package clogitboost. R topics documented: December 21, 2015

Package RcppSMC. March 18, 2018

Package TSPred. April 5, 2017

Package robustrao. August 14, 2017

Package SK. May 16, 2018

Package BNSL. R topics documented: September 18, 2017

Package TimeSeries.OBeu

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

Package bayeslm. R topics documented: June 18, Type Package

Package covsep. May 6, 2018

Package Delaporte. August 13, 2017

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

Package dina. April 26, 2017

Introduction to Natural Computation. Lecture 9. Multilayer Perceptrons and Backpropagation. Peter Lewis

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

Package dlagm. January 17, 2018

Package jaccard. R topics documented: June 14, Type Package

Package TSF. July 15, 2017

Package rarhsmm. March 20, 2018

Package LPTime. March 3, 2015

Package supernova. February 23, 2018

Package abundant. January 1, 2017

Package CPE. R topics documented: February 19, 2015

Package neuralnet. August 16, 2016

Package penmsm. R topics documented: February 20, Type Package

Package chemcal. July 17, 2018

Package LIStest. February 19, 2015

Package coop. November 14, 2017

Package IUPS. February 19, 2015

Package SpatPCA. R topics documented: February 20, Type Package

Package fwsim. October 5, 2018

Package MAVE. May 20, 2018

Package generalhoslem

Forecasting: Principles and Practice. Rob J Hyndman. 12. Advanced methods OTexts.com/fpp/9/2/ OTexts.com/fpp/9/3/

Package depth.plot. December 20, 2015

Package locfdr. July 15, Index 5

Package msu. September 30, 2017

Package NonpModelCheck

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

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

Package SimSCRPiecewise

Package goftest. R topics documented: April 3, Type Package

Package ltsbase. R topics documented: February 20, 2015

Package effectfusion

Package MicroMacroMultilevel

Package icmm. October 12, 2017

Package ADPF. September 13, 2017

Package OGI. December 20, 2017

Package RootsExtremaInflections

Lab 5: 16 th April Exercises on Neural Networks

Package reinforcedpred

Package exuber. June 17, 2018

Sample questions for Fundamentals of Machine Learning 2018

Package WaveletArima

Package cartogram. June 21, 2018

Package MultisiteMediation

Neural networks. Chapter 19, Sections 1 5 1

Package MonoPoly. December 20, 2017

Package SEMModComp. R topics documented: February 19, Type Package Title Model Comparisons for SEM Version 1.0 Date Author Roy Levy

Package netcoh. May 2, 2016

Unit III. A Survey of Neural Network Model

Package ensemblepp. R topics documented: September 20, Title Ensemble Postprocessing Data Sets. Version

Artificial neural networks

Package Metrics. November 3, 2017

Package GD. January 12, 2018

Artificial Neural Networks" and Nonparametric Methods" CMPSCI 383 Nov 17, 2011!

Package BayesTreePrior

Package factorqr. R topics documented: February 19, 2015

Package idmtpreg. February 27, 2018

Package tspi. August 7, 2017

Package rnmf. February 20, 2015

Package AID. R topics documented: November 10, Type Package Title Box-Cox Power Transformation Version 2.3 Date Depends R (>= 2.15.

Package aspi. R topics documented: September 20, 2016

Package multivariance

2015 Todd Neller. A.I.M.A. text figures 1995 Prentice Hall. Used by permission. Neural Networks. Todd W. Neller

Transcription:

Type Package Title Non Linear Time Series Analysis Version 1.3.5 Date 2018-09-05 Package NlinTS September 10, 2018 Maintainer Youssef Hmamouche <hmamoucheyussef@gmail.com> Models for time series forecasting and causality detection. The main functionalities of this package consist of a neural network Vector Auto-Regressive model, the classical causality test C.W.J.Granger (1980) <doi:10.1016/0165-1889(80)90069-x>, and a nonlinear version of it based on feed-forward neural networks. License GNU General Public License Depends Rcpp Imports methods, timeseries, Rdpack RdMacros Rdpack LinkingTo Rcpp SystemRequirements C++11 NeedsCompilation yes RoxygenNote 6.0.1 Author Youssef Hmamouche [aut, cre], Sylvain Barthelemy [cph] Repository CRAN Date/Publication 2018-09-10 19:30:03 UTC R topics documented: causality.test......................................... 2 df.test............................................ 3 nlin_causality.test...................................... 4 varmlp............................................ 5 Index 6 1

2 causality.test causality.test The Granger causality test The Granger causality test causality.test(ts1, ts2,, diff = FALSE) ts1 ts2 diff Numerical dataframe containing one variable. Numerical dataframe containing one variable. The parameter. Logical argument for the option of making data stationary before making the test. The test evaluates if the second time series causes the first one using the Granger test of causality. pvalue: the p-value of the test. Ftest: the statistic of the test. summary (): shows the test results. References Granger CWJ (1980). Testing for Causality. Journal of Economic Dynamics and Control, 2, pp. 329 352. ISSN 0165-1889, doi: 10.1016/01651889(80)90069X. library (timeseries) # to extract time series model = causality.test (data[,1], data[,2], 2) model$summary ()

df.test 3 df.test Augmented Dickey_Fuller test Augmented Dickey_Fuller test df.test(ts, ) ts Numerical dataframe. The parameter. Computes the stationarity test for a given univariate time series. df: returns the value of the test. summary (): shows the test results. References Elliott G, Rothenberg TJ and Stock JH (1992). Efficient tests for an autoregressive unit root. library (timeseries) #load data model = df.test (data[,1], 1) model$summary ()

4 nlin_causality.test nlin_causality.test A non linear Granger causality test A non linear Granger causality test nlin_causality.test(ts1, ts2,, LayersUniv, LayersBiv, iters, bias = TRUE) ts1 ts2 LayersUniv LayersBiv iters bias Numerical series. Numerical series. The parameter Integer vector that contains the size of hidden layers of the univariate model. The length of this vector is the number of hidden layers, and the i-th element is the number of neurons in the i-th hidden layer. Integer vector that contains the size of hidden layers of the bivariate model. The length of this vector is the number of hidden layers, and the i-th element is the number of neurons in the i-th hidden layer. The number of iterations. Logical argument for the option of using the bias in the networks. The test evaluates if the second time series causes the first one. Two MLP artificial neural networks are evaluated to perform the test, one using just the target time series (ts1), and the second using both time series. pvalue: the p-value of the test. Ftest: the statistic of the test. summary (): shows the test results. library (timeseries) # to extract time series # We construct the model based model = nlin_causality.test (data[,1], data[,2], 2, c(2, 2), c(4, 4), 500, TRUE) model$summary ()

varmlp 5 varmlp Artificial Neural Network VAR (Vector Auto-Regressive) model using a MultiLayer Perceptron. Artificial Neural Network VAR (Vector Auto-Regressive) model using a MultiLayer Perceptron. varmlp(df,, sizeofhlayers, iters, bias = TRUE) df sizeofhlayers iters bias A numerical dataframe The parameter. Integer vector that contains the size of hidden layers, where the length of this vector is the number of hidden layers, and the i-th element is the number of neurons in the i-th hidden layer. The number of iterations. Logical, true if the bias have to be used in the network. This function builds the model, and returns an object that can be used to make forecasts and can be updated using new data. train (df): updates the model using the input dataframe. forecast (df): returns the next row forecasts of an given dataframe. library (timeseries) # to extract time series #load data # Prepare data to make one forecasts train_data = head (data, nrow (data) - 1) test_data = tail (data, 1) model = varmlp (train_data, 1, c(10,5), 200, TRUE) predictions = model$forecast (train_data) print (tail (predictions,1)) # Update the model (learning from new data) model$train (test_data)

Index causality.test, 2 df.test, 3 nlin_causality.test, 4 varmlp, 5 6