Learn R Programming

⚠️There's a newer version (11.0.4.1) of this package.Take me there.

tsDyn

Package tsDyn implements a variety of non-linear time series models. To read more about it, look at:

Installation

You can install the released version of tsDyn from CRAN with:

install.packages("tsDyn")

Development version

Most of the development is hosted under the branch called Dev94. To install that version, use:

library(remotes)
remotes::install_github("MatthieuStigler/tsDyn/tsDyn", ref = "dev")

Copy Link

Version

Install

install.packages('tsDyn')

Monthly Downloads

2,359

Version

11.0.4

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Last Published

January 26th, 2023

Functions in tsDyn (11.0.4)

TVAR.LRtest

Test of linearity
MakeThSpec

Specification of the threshold search
MAPE

Mean Absolute Percent Error
IIPUs

US monthly industrial production from Hansen (1999)
BBCTest

Test of unit root against SETAR alternative
TVAR.sim

Simulation of a multivariate Threshold Autoregressive model (TVAR)
UsUnemp

US unemployment series used in Caner and Hansen (2001)
TVECM.SeoTest

No cointegration vs threshold cointegration test
accuracy_stat

Forecasting accuracy measures.
TVECM.HStest

Test of linear cointegration vs threshold cointegration
aar

Additive nonlinear autoregressive model
VECM

Estimation of Vector error correction model (VECM)
VECM_symbolic

Virtual VECM model
TVECM

Threshold Vector Error Correction model (VECM)
TVECM.sim

Simulation and bootstrap a VECM or bivariate TVECM
VARrep

VAR representation
VAR.sim

Simulate or bootstrap a VAR model
ar_mean

Long-term mean of an AR(p) process
addRegime

addRegime test
autopairs

Bivariate time series plots
barry

Time series of PPI used as example in Bierens and Martins (2010)
autotriples.rgl

Interactive trivariate time series plots
charac_root

Characteristic roots of the AR coefficients
availableModels

Available models
irf.linear

Impulse response function
autotriples

Trivariate time series plots
delta.lin

delta test of linearity
getTh

Extract threshold(s) coefficient
delta

delta test of conditional independence
fevd.nlVar

Forecast Error Variance Decomposition
LINEAR

Linear AutoRegressive models
lineVar

Multivariate linear models: VAR and VECM
fitted.nlVar

fitted method for objects of class nlVar, i.e. VAR and VECM models.
llar

Locally linear model
nlar.struct

NLAR common structure
nlar

Non-linear time series model, base class definition
logLik.nlVar

Extract Log-Likelihood
LSTAR

Logistic Smooth Transition AutoRegressive model
NNET

Neural Network nonlinear autoregressive model
m.unrate

Monthly US unemployment
oneStep

oneStep
coefB

Extract cointegration parameters A, B and PI
isLinear

isLinear
lags.select

Selection of the lag with Information criterion.
computeGradient

computeGradient
reexports

Objects exported from other packages
regime

Extract a variable showing the regime
rank.test

Test of the cointegrating rank
rank.select

Selection of the cointegrating rank with Information criterion.
plot_ECT

Plot the Error Correct Term (ECT) response
predict_rolling

Rolling forecasts
resVar

Residual variance
mse

Mean Square Error
plot methods

Plotting methods for SETAR and LSTAR subclasses
predict.TVAR

Predict method for objects of class ‘VAR’, ‘VECM’ or ‘TVAR
SETAR

Self Threshold Autoregressive model
selectSETAR

Automatic selection of SETAR hyper-parameters
STAR

STAR model
toLatex.setar

Latex representation of fitted setar models
resample_vec

Resampling schemes
selectHyperParms

Automatic selection of model hyper-parameters
predict.nlar

Predict method for objects of class ‘nlar’.
nlar-methods

NLAR methods
setarTest_IIPUs_results

Results from the setarTest, applied on Hansen (1999) data
sigmoid

sigmoid functions
tsDyn-package

Getting started with the tsDyn package
setar.sim

Simulation and bootstrap of Threshold Autoregressive model (SETAR)
setarTest

Test of linearity against threshold (SETAR)
zeroyld

zeroyld time series
KapShinTest

Test of unit root against SETAR alternative with
GIRF

Generalized Impulse response Function (GIRF)
TVAR

Multivariate Threshold Vector Autoregressive model