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

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

3,087

Version

11.0.4.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Last Published

February 1st, 2024

Functions in tsDyn (11.0.4.1)

TVAR.LRtest

Test of linearity
aar

Additive nonlinear autoregressive model
accuracy_stat

Forecasting accuracy measures.
TVECM.SeoTest

No cointegration vs threshold cointegration test
TVECM.sim

Simulation and bootstrap a VECM or bivariate TVECM
TVECM

Threshold Vector Error Correction model (VECM)
VECM

Estimation of Vector error correction model (VECM)
TVECM.HStest

Test of linear cointegration vs threshold cointegration
ar_mean

Long-term mean of an AR(p) process
autotriples.rgl

Interactive trivariate time series plots
availableModels

Available models
autopairs

Bivariate time series plots
addRegime

addRegime test
autotriples

Trivariate time series plots
VECM_symbolic

Virtual VECM model
charac_root

Characteristic roots of the AR coefficients
barry

Time series of PPI used as example in Bierens and Martins (2010)
fevd.nlVar

Forecast Error Variance Decomposition
delta

delta test of conditional independence
fitted.nlVar

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

delta test of linearity
mse

Mean Square Error
nlar-methods

NLAR methods
VAR.sim

Simulate or bootstrap a VAR model
getTh

Extract threshold(s) coefficient
irf.linear

Impulse response function
lineVar

Multivariate linear models: VAR and VECM
LINEAR

Linear AutoRegressive models
resVar

Residual variance
regime

Extract a variable showing the regime
VARrep

VAR representation
NNET

Neural Network nonlinear autoregressive model
coefB

Extract cointegration parameters A, B and PI
oneStep

oneStep
isLinear

isLinear
computeGradient

computeGradient
lags.select

Selection of the lag with Information criterion.
nlar

Non-linear time series model, base class definition
llar

Locally linear model
STAR

STAR model
plot methods

Plotting methods for SETAR and LSTAR subclasses
logLik.nlVar

Extract Log-Likelihood
resample_vec

Resampling schemes
plot_ECT

Plot the Error Correct Term (ECT) response
reexports

Objects exported from other packages
sigmoid

sigmoid functions
rank.test

Test of the cointegrating rank
selectHyperParms

Automatic selection of model hyper-parameters
setarTest_IIPUs_results

Results from the setarTest, applied on Hansen (1999) data
toLatex.setar

Latex representation of fitted setar models
nlar.struct

NLAR common structure
setarTest

Test of linearity against threshold (SETAR)
setar.sim

Simulation and bootstrap of Threshold Autoregressive model (SETAR)
predict.TVAR

Predict method for objects of class ‘VAR’, ‘VECM’ or ‘TVAR
m.unrate

Monthly US unemployment
predict.nlar

Predict method for objects of class ‘nlar’.
LSTAR

Logistic Smooth Transition AutoRegressive model
tsDyn-package

Getting started with the tsDyn package
zeroyld

zeroyld time series
selectSETAR

Automatic selection of SETAR hyper-parameters
predict_rolling

Rolling forecasts
SETAR

Self Threshold Autoregressive model
rank.select

Selection of the cointegrating rank with Information criterion.
GIRF

Generalized Impulse response Function (GIRF)
BBCTest

Test of unit root against SETAR alternative
MAPE

Mean Absolute Percent Error
MakeThSpec

Specification of the threshold search
KapShinTest

Test of unit root against SETAR alternative with
TVAR

Multivariate Threshold Vector Autoregressive model
TVAR.sim

Simulation of a multivariate Threshold Autoregressive model (TVAR)
IIPUs

US monthly industrial production from Hansen (1999)
UsUnemp

US unemployment series used in Caner and Hansen (2001)