crs: Categorical Regression Splines

Regression splines that handle a mix of continuous and categorical (discrete) data often encountered in applied settings. I would like to gratefully acknowledge support from the Natural Sciences and Engineering Research Council of Canada (NSERC, <>), the Social Sciences and Humanities Research Council of Canada (SSHRC, <>), and the Shared Hierarchical Academic Research Computing Network (SHARCNET, <>). We would also like to acknowledge the contributions of the GNU GSL authors. In particular, we adapt the GNU GSL B-spline routine gsl_bspline.c adding automated support for quantile knots (in addition to uniform knots), providing missing functionality for derivatives, and for extending the splines beyond their endpoints.

Version: 0.15-37
Imports: boot, stats, np, quantreg
Suggests: logspline, quadprog, rgl
Published: 2023-01-07
DOI: 10.32614/
Author: Jeffrey S. Racine [aut, cre], Zhenghua Nie [aut], Brian D. Ripley [ctb] (stepCV.R)
Maintainer: Jeffrey S. Racine <racinej at>
License: GPL (≥ 3)
Copyright: see file COPYRIGHTS
NeedsCompilation: yes
Materials: README ChangeLog
In views: Optimization
CRAN checks: crs results


Reference manual: crs.pdf
Vignettes: The crs Package
Frequently Asked Questions (crs)
A Primer on Spline Regression


Package source: crs_0.15-37.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): crs_0.15-37.tgz, r-oldrel (arm64): crs_0.15-37.tgz, r-release (x86_64): crs_0.15-37.tgz, r-oldrel (x86_64): crs_0.15-37.tgz
Old sources: crs archive

Reverse dependencies:

Reverse imports: cops
Reverse suggests: laGP, mlr


Please use the canonical form to link to this page.