bases: Basis Expansions for Regression Modeling

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) (Chipman et al., 2010) <doi:10.1214/09-AOAS285>, 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.

Version: 0.2.0
Depends: R (≥ 3.6.0)
Imports: rlang, stats, methods
LinkingTo: cpp11
Suggests: mgcv, recipes, tibble, adj (≥ 0.1.0), RSpectra, igraph, testthat (≥ 3.0.0), knitr, rmarkdown
Published: 2026-02-27
DOI: 10.32614/CRAN.package.bases
Author: Cory McCartan ORCID iD [aut, cre, cph]
Maintainer: Cory McCartan <mccartan at psu.edu>
BugReports: https://github.com/CoryMcCartan/bases/issues
License: MIT + file LICENSE
URL: https://corymccartan.com/bases/, https://github.com/CoryMcCartan/bases/
NeedsCompilation: yes
Materials: README, NEWS
CRAN checks: bases results

Documentation:

Reference manual: bases.html , bases.pdf
Vignettes: Other Basis Expansions and Embeddings (source, R code)
Valid Prediction (source, R code)

Downloads:

Package source: bases_0.2.0.tar.gz
Windows binaries: r-devel: bases_0.1.2.zip, r-release: bases_0.1.2.zip, r-oldrel: bases_0.1.2.zip
macOS binaries: r-release (arm64): bases_0.1.2.tgz, r-oldrel (arm64): bases_0.1.2.tgz, r-release (x86_64): bases_0.1.2.tgz, r-oldrel (x86_64): bases_0.1.2.tgz
Old sources: bases archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=bases to link to this page.