Skip to content

bases

0.2.1

Basis Expansions for Regression Modeling

1packages depend
5.4Kdownloads / year
78.8%test coverage
13/13checks pass

Overview

About
Maintained by Cory McCartanFirst published 2025-05-293 releasesCRAN page ↗GitHub ↗

Provides various basis expansions for flexible regression modeling, including random Fourier features (Rahimi & Recht, 2007) https://proceedings.neurips.cc/paper_files/paper/2007/file/013a006f03dbc5392effeb8f18fda755-Paper.pdf, exact kernel / Gaussian process feature maps, prior features for Bayesian Additive Regression Trees (BART) (McCartan & Huang, 2026) doi:10.48550/arXiv.2607.28844, and a helpful interface for n-way interactions. The provided functions may be used within any modeling formula, allowing the use of kernel methods and other basis expansions in modeling functions that do not otherwise support them. Along with the basis expansions, a number of kernel functions are also provided, which support kernel arithmetic to form new kernels. Basic ridge regression functionality is included as well.

Install

Health

CRAN checks
13OK
Slowest check: 3.0 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 0.41
78.8%
Coverage · measured lines
100%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 361 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
96%
Return-value docs
100%
References docs
29%

Downloads

5.4K
CRAN downloads in the past year
Rank #12,442 · ~15/day · ~447/mo
Daily download trend is not available in this view yet.
30730 days
80190 days
5.4K1 year
Compare downloads with other packages →
Also on419 r2u49 autocran

Repository

Repository
2Stars
0Forks
0Open issues
0Open PRs
3Releases
56Commits
2Contributors
machine-learningmlrstatistics
56 commits · Last activity 2026-08-05 · +100% stars, 30d

Stars over time

2025-06-26 · 12026-08-07 · 2

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/corymccartan/bases on 2026-08-16.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdrevdep/
Docs source (1)
README.Rmd
Lint, format, editor (2)
AirRStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Development tooling

AI-assisted toolingBeta

Uses AI-assisted development tooling (declared in repo)

Earliest detected marker: copilot on 2026-01-06

copilot

Most recent: copilot on 2026-01-06

Evidence
  • copilot: on 2026-01-06 · evidence A, PR · sole bot-author seen
How this is detected·Detection ruleset v2 (updated 2026-07-29)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.6.0
Imports (3)
rlangstatsmethods
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

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

  • 0.2.1Latest
    2026-08-05 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.0
    2026-02-27 · diff ↗
  • 0.1.2
    2025-05-29
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-05-29
Total releases
3 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.6.0
Download size
199 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("bases")
McCartan, C. (2026). bases: Basis Expansions for Regression Modeling (Version 0.2.1) [Computer software]. https://doi.org/10.32614/CRAN.package.bases

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 bases version 0.2.1 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, 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