Skip to content

tsDyn

Nonlinear Time Series Models with Regime Switching

v11.0.5.2 · Oct 31, 2024 · GPL (>= 2)

Description

Implements nonlinear autoregressive (AR) time series models. For univariate series, a non-parametric approach is available through additive nonlinear AR. Parametric modeling and testing for regime switching dynamics is available when the transition is either direct (TAR: threshold AR) or smooth (STAR: smooth transition AR, LSTAR). For multivariate series, one can estimate a range of TVAR or threshold cointegration TVECM models with two or three regimes. Tests can be conducted for TVAR as well as for TVECM (Hansen and Seo 2002 and Seo 2006).

Downloads

3.6K

Last 30 days

2122nd

10.3K

Last 90 days

59.1K

Last year

Trend: +13.5% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 30, 2026
NOTE 13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 27, 2026
NOTE r-devel-macos-arm64

tests

Running ‘00SetarAndFriends.R’ [1s/1s]
  Comparing ‘00SetarAndFriends.Rout’ to ‘00SetarAndFriends.Rout.save’ ... OK
  Running ‘GIRF_TEST.R’ [4s/4s]
  Comparing ‘GIRF_TEST.Rout’ to ‘GIRF_TEST.Rout.save’ ... OK
  Running ‘TVAR_TEST.R’ [3s/3s]
  Comparin
...[truncated]...
to ‘setarTest_test.Rout.save’ ... OK
  Running ‘testthat.R’ [6s/6s]
  Running ‘toMlm.R’ [1s/1s]
  Comparing ‘toMlm.Rout’ to ‘toMlm.Rout.save’ ... OK
  Running ‘univ_ar_mean.R’ [1s/1s]
  Comparing ‘univ_ar_mean.Rout’ to ‘univ_ar_mean.Rout.save’ ... OK
ERROR 12 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 24, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘00SetarAndFriends.R’ [4s/5s]
  Comparing ‘00SetarAndFriends.Rout’ to ‘00SetarAndFriends.Rout.save’ ... OK
  Running ‘GIRF_TEST.R’ [13s/16s]
  Comparing ‘GIRF_TEST.Rout’ to ‘GIRF_TEST.Rout.save’ ... OK
  Running ‘TVAR_TEST.R’ [9s/12s]
  Compa
...[truncated]...
 
  > ## compare with ar?
  > ar_1_noMean <- ar(lh, order.max =1, demean = FALSE, method = "ols")
  Error in ar.ols(x, aic = aic, order.max = order.max, na.action = na.action,  : 
    non-conformable arguments
  Calls: ar -> ar.ols
  Execution halted
NOTE r-devel-macos-arm64

tests

Running ‘00SetarAndFriends.R’ [1s/1s]
  Comparing ‘00SetarAndFriends.Rout’ to ‘00SetarAndFriends.Rout.save’ ... OK
  Running ‘GIRF_TEST.R’ [4s/4s]
  Comparing ‘GIRF_TEST.Rout’ to ‘GIRF_TEST.Rout.save’ ... OK
  Running ‘TVAR_TEST.R’ [3s/3s]
  Comparin
...[truncated]...
to ‘setarTest_test.Rout.save’ ... OK
  Running ‘testthat.R’ [6s/6s]
  Running ‘toMlm.R’ [1s/1s]
  Comparing ‘toMlm.Rout’ to ‘toMlm.Rout.save’ ... OK
  Running ‘univ_ar_mean.R’ [1s/1s]
  Comparing ‘univ_ar_mean.Rout’ to ‘univ_ar_mean.Rout.save’ ... OK
NOTE 13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-macos-arm64

tests

Running ‘00SetarAndFriends.R’ [1s/1s]
  Comparing ‘00SetarAndFriends.Rout’ to ‘00SetarAndFriends.Rout.save’ ... OK
  Running ‘GIRF_TEST.R’ [4s/4s]
  Comparing ‘GIRF_TEST.Rout’ to ‘GIRF_TEST.Rout.save’ ... OK
  Running ‘TVAR_TEST.R’ [3s/3s]
  Comparin
...[truncated]...
to ‘setarTest_test.Rout.save’ ... OK
  Running ‘testthat.R’ [6s/6s]
  Running ‘toMlm.R’ [1s/1s]
  Comparing ‘toMlm.Rout’ to ‘toMlm.Rout.save’ ... OK
  Running ‘univ_ar_mean.R’ [1s/1s]
  Comparing ‘univ_ar_mean.Rout’ to ‘univ_ar_mean.Rout.save’ ... OK

Reverse Dependencies (6)

suggests

Dependency Network

Dependencies Reverse dependencies mnormt mgcv nnet tseriesChaos tseries vars urca forecast MASS Matrix foreach generics GVARX NonlinearTSA combcoint bivarhr mFilter svars tsDyn

Version History

new 11.0.5.2 Mar 10, 2026
updated 11.0.5.2 ← 11.0.4.1 diff Oct 30, 2024
updated 11.0.4.1 ← 11.0.4 diff Jan 31, 2024
updated 11.0.4 ← 11.0.2 diff Jan 25, 2023
updated 11.0.2 ← 11.0.0 diff Mar 8, 2022
updated 11.0.0 ← 10-1.2 diff Feb 20, 2022
updated 10-1.2 ← 10-1.1 diff Feb 3, 2020
updated 10-1.1 ← 0.9-48.1 diff Jan 9, 2020
updated 0.9-48.1 ← 0.9-48 diff May 25, 2019
updated 0.9-48 ← 0.9-46 diff Jun 2, 2018
updated 0.9-46 ← 0.9-44 diff Jan 21, 2018
updated 0.9-44 ← 0.9-43 diff May 21, 2016
updated 0.9-43 ← 0.9-41 diff Apr 23, 2015
updated 0.9-41 ← 0.9-33 diff Aug 25, 2014
updated 0.9-33 ← 0.9-32 diff Mar 28, 2014
updated 0.9-32 ← 0.9-2 diff Jul 12, 2013
updated 0.9-2 ← 0.9-1 diff Dec 20, 2012
updated 0.9-1 ← 0.9-0 diff Nov 7, 2012
updated 0.9-0 ← 0.8-1 diff Oct 28, 2012
updated 0.8-1 ← 0.7-62 diff Feb 15, 2012