tsDyn
Nonlinear Time Series Models with Regime Switching
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.4K
Last 30 days
2143rd
12.1K
Last 90 days
57.8K
Last year
Trend: -24% (30d vs prior 30d)
51
Last 30 days
254
Last 90 days
626
Last year
Trend: -49.5% (30d vs prior 30d)
3
Last 7 days
10
Last 30 days
1
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
CRAN Check Status
Show all 13 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-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 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 19, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 17, 2026
for unstated dependencies in ‘tests’
Warning: unable to access index for repository https://bioconductor.org/packages/3.22/bioc/src/contrib: cannot open URL 'https://bioconductor.org/packages/3.22/bioc/src/contrib/PACKAGES' Warning: unable to access index for repository https://biocon ...[truncated]... 2/data/annotation/src/contrib/PACKAGES' Warning: unable to access index for repository https://bioconductor.org/packages/3.22/data/experiment/src/contrib: cannot open URL 'https://bioconductor.org/packages/3.22/data/experiment/src/contrib/PACKAGES'
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
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
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
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
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