Butterworth-Induced Autoregressive Model
Overview
Implements the Butterworth-Induced Autoregressive ('BTWAR') model, where autoregressive coefficients are obtained from analog Butterworth filter prototypes mapped into the discrete-time domain using the Matched Z-Transform. The framework establishes a structured connection between frequency-domain filter design and time-domain autoregressive modeling. Model order selection is performed via nested rolling-origin cross-validation. Method described in Bras-Geraldes, Rocha and Martins (2026) doi:10.3390/math14030479.
Bug fixes
- Fixed a bug in
plot_bode()where the frequency axis was linearly spaced instead of log-spaced, causing distortion on the logarithmic scale.
New features
- Added
plot_freq_amplitude()to display the frequency amplitude spectrum of a time series with reference lines at the cutoff and Nyquist frequencies.
Documentation
- Fixed example in
poles_AR()wherefitobject was not defined. - Updated all plot function examples to use
simulate_ar_split()for consistency with the vignette. - Removed
set.seed()calls from examples. - Replaced all
\dontrun{}with\donttest{}throughout the package.
Show all changes in 1.0.1Hide the rest of the changes in 1.0.1
- Added DOI reference in
DESCRIPTION. - Removed single quotes from non-software terms in
DESCRIPTION.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK5 OK2026-03-20
Documentation
- Help pages
- 20
- Examples that run
- 62%8 run in a plain check · 5 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 99%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Releases over time
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/cgeraldes/btwar on 2026-10-11.
Dependencies
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- 1.0.1Latest2026-03-19 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-03-19
- Total releases
- 1 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 309 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("BTWAR")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.3390/math14030479.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.