Skip to content

setartree

0.2.1

SETAR-Tree - A Novel and Accurate Tree Algorithm for Global Time Series Forecasting

0packages depend
3.1Kdownloads / year
test coverage
11/13checks pass

Overview

About
Maintained by Rakshitha GodahewaFirst published 2023-02-223 releasesCRAN page ↗GitHub ↗

The implementation of a forecasting-specific tree-based model that is in particular suitable for global time series forecasting, as proposed in Godahewa et al. (2022) arXiv:2211.08661v1. The model uses the concept of Self Exciting Threshold Autoregressive (SETAR) models to define the node splits and thus, the model is named SETAR-Tree. The SETAR-Tree uses some time-series-specific splitting and stopping procedures. It trains global pooled regression models in the leaves allowing the models to learn cross-series information. The depth of the tree is controlled by conducting a statistical linearity test as well as measuring the error reduction percentage at each node split. Thus, the SETAR-Tree requires minimal external hyperparameter tuning and provides competitive results under its default configuration. A forest is developed by extending the SETAR-Tree. The SETAR-Forest combines the forecasts provided by a collection of diverse SETAR-Trees during the forecasting process.

Install

Health

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 1.1 min · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
5
Dependencies · direct
Check history
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
43%
Documented parameters
100%
Return-value docs
67%
References docs
44%

Downloads

3.1K
CRAN downloads in the past year
Rank #13,419 · ~9/day · ~260/mo
Daily download trend is not available in this view yet.
18230 days
75690 days
3.1K1 year
Compare downloads with other packages →
Also on122 r2u32 autocran29 c2d4u

Repository

Repository
2Stars
0Forks
0Open issues
0Open PRs
0Releases
30Commits
2Contributors
30 commits · Last activity 2023-08-24

Stars over time

2023-09-19 · 22026-07-07 · 2

Repository practices

Upstream repositoryBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/rakshitha123/setartree on 2026-08-16.

Reproducibility and dev environment (1)
Makefile
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (5)
statsutilsmethodsparallelgenerics
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (4)
Maintainer (1)
Maintainer, Author, Copyright holder
Authors (3)
Maintainer, Author, Copyright holder
Contributors (1)
Contributor
Copyright holders (1)
Maintainer, Author, Copyright holder
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.1Latest
    2023-08-24 · current release · diff ↗
  • 0.2.0
    2023-08-21 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.0
    2023-02-22
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2023-02-22
Total releases
3 / 3 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Bundled data
83 KB / 3 files
Download size
109 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("setartree")
Godahewa, R., Bergmeir, C., Schmidt, D., & Webb, G. (2023). setartree: SETAR-Tree - A Novel and Accurate Tree Algorithm for Global Time Series Forecasting (Version 0.2.1) [Computer software]. https://doi.org/10.32614/CRAN.package.setartree

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for setartree version 0.2.1 [Data set]. HJJB, LLC. Data release v2026-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy