Learn R Programming

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

You can download the version from github using:

library(remotes)
remotes::install_github("MatthieuStigler/tsDyn")

Copy Link

Version

Install

install.packages('tsDyn')

Monthly Downloads

699

Version

11.0.6

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Matthieu Stigler

Last Published

November 3rd, 2026

Functions in tsDyn (11.0.6)

VECM

Estimation of Vector error correction model (VECM)
accuracy_stat

Forecasting accuracy measures.
aar

Additive nonlinear autoregressive model
TVECM.sim

Simulation and bootstrap a VECM or bivariate TVECM
TVECM.SeoTest

No cointegration vs threshold cointegration test
TVECM.HStest

Test of linear cointegration vs threshold cointegration
TVECM

Threshold Vector Error Correction model (VECM)
ar_mean

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

Extract cointegration parameters A, B and PI
addRegime

addRegime test
availableModels

Available models
computeGradient

computeGradient
LINEAR

Linear AutoRegressive models
lineVar

Multivariate linear models: VAR and VECM
autotriples

Trivariate time series plots
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
VECM_symbolic

Virtual VECM model
charac_root

Characteristic roots of the AR coefficients
getTh

Extract threshold(s) coefficient
irf.linear

Impulse response function
mse

Mean Square Error
NNET

Neural Network nonlinear autoregressive model
nlar-methods

NLAR methods
delta.lin

delta test of linearity
delta

delta test of conditional independence
oneStep

oneStep
logLik.nlVar

Extract Log-Likelihood
llar

Locally linear model
m.unrate

Monthly US unemployment
LSTAR

Logistic Smooth Transition AutoRegressive model
predict.nlar

Predict method for objects of class ‘nlar’.
plot_ECT

Plot the Error Correct Term (ECT) response
plot methods

Plotting methods for SETAR and LSTAR subclasses
predict.TVAR

Predict method for objects of class ‘VAR’, ‘VECM’ or ‘TVAR’
rank.test

Test of the cointegrating rank
reexports

Objects exported from other packages
sigmoid

sigmoid functions
setarTest_IIPUs_results

Results from the setarTest, applied on Hansen (1999) data
fevd.nlVar

Forecast Error Variance Decomposition
setar.sim

Simulation and bootstrap of Threshold Autoregressive model (SETAR)
regime

Extract a variable showing the regime
isLinear

isLinear
resVar

Residual variance
lags.select

Selection of the lag with Information criterion.
resample_vec

Resampling schemes
nlar.struct

NLAR common structure
nlar

Non-linear time series model, base class definition
STAR

STAR model
selectHyperParms

Automatic selection of model hyper-parameters
predict_rolling

Rolling forecasts
fitted.nlVar

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

Selection of the cointegrating rank with Information criterion.
selectSETAR

Automatic selection of SETAR hyper-parameters
toLatex.setar

Latex representation of fitted setar models
SETAR

Self Threshold Autoregressive model
setarTest

Test of linearity against threshold (SETAR)
zeroyld

zeroyld time series
tsDyn-package

Getting started with the tsDyn package
TVAR

Multivariate Threshold Vector Autoregressive model
TVAR.sim

Simulation of a multivariate Threshold Autoregressive model (TVAR)
KapShinTest

Test of unit root against SETAR alternative with
MAPE

Mean Absolute Percent Error
IIPUs

US monthly industrial production from Hansen (1999)
GIRF

Generalized Impulse response Function (GIRF)
BBCTest

Test of unit root against SETAR alternative
VAR.sim

Simulate or bootstrap a VAR model
UsUnemp

US unemployment series used in Caner and Hansen (2001)
VARrep

VAR representation
MakeThSpec

Specification of the threshold search
TVAR.LRtest

Test of linearity