Simulate Time Series Diagnostics
Overview
These are tools that allow users to do time series diagnostics, primarily tests of unit root, by way of simulation. While there is nothing necessarily wrong with the received wisdom of critical values generated decades ago, simulation provides its own perks. Not only is simulation broadly informative as to what these various test statistics do and what are their plausible values, simulation provides more flexibility for assessing unit root by way of different thresholds or different hypothesized distributions.
Updates across the board, including:
- Clarified/updated functionality to
spp_test(). skpss_test()performs the KPSS test with simulated critical values.sim_ts()is a function for simulating time series, mostly used internally.sim_df_mod()is a function for simulating Dickey-Fuller statistics, mostly used internally.sadf_test()does the (Augmented) Dickey-Fuller test with simulated critical values.adf_lag_select()helps the user identify potentially optimal lag selection for (Augmented) Dickey-Fuller tests.ur_summary()provides a more straightforward function to summarize unit root tests produced in this package.USDICE,tbills,exCopdab,lag_suggests, andmoney_demandare toy data sets now included in this package.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 13
- Examples that run
- 100%7 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 31%
Downloads
Dependencies
Installing sTSD adds no packages beyond those that come with R.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.2.0Latest2025-01-27 · current release · diff ↗ ·
added 5 exports
adf_lag_select, sadf_test, sim_df_mod, sim_ts, skpss_test - 0.1.02024-12-20
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-12-20
- Total releases
- 2 / 2 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.6.0
- Bundled data
- 159 KB / 6 files
- Download size
- 168 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("sTSD")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.