Skip to content

knnwtsim

1.0.0

K Nearest Neighbor Forecasting with a Tailored Similarity Metric

0packages depend
2.4Kdownloads / year
99.7%test coverage
11/13checks pass

Overview

About
Maintained by Matthew TrupianoFirst published 2021-11-182 releasesCRAN page ↗GitHub ↗

Functions to implement K Nearest Neighbor forecasting using a weighted similarity metric tailored to the problem of forecasting univariate time series where recent observations, seasonal patterns, and exogenous predictors are all relevant in predicting future observations of the series in question. For more information on the formulation of this similarity metric please see Trupiano (2021) arXiv:2112.06266.

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
Yes
Tests · ratio 1.47
99.7%
Coverage · measured lines
100%
Documentation · exports
1
Dependencies · direct
Check history
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,659 wordsVignettesNopkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

2.4K
CRAN downloads in the past year
Rank #20,002 · ~7/day · ~199/mo
Daily download trend is not available in this view yet.
17730 days
55890 days
2.4K1 year
Compare downloads with other packages →
Also on94 r2u3 autocran

Repository

Repository
1Stars
0Forks
0Open issues
0Open PRs
1Releases
118Commits
1Contributors
r-packagecrantime-seriesknn-regressionforecastingrmachine-learning
License GPL-3.0 · 118 commits · Last activity 2022-03-06

Stars over time

2022-03-16 · 12026-07-07 · 1

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/mtrupiano1/knnwtsim on 2026-07-30.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)
Depends (1)
R >= 2.10
Imports (1)
stats
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (0)

Author records are not tracked yet for this package.

Listed in earlier versions (1)
no longer listed · 0.1.0 to 1.0.0
Package Timeline

2 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
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0.0Latest
    2022-03-05 · current release · diff ↗
  • 0.1.0
    2021-11-18
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2021-11-18
Total releases
2 / 5 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 2.10
Bundled data
142 KB / 4 files
Download size
200 KB
Installed size
not tracked yet
With dependencies
not tracked yet
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