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, <>).

CRAN downloads

This is the R package `crs' (Categorical Regression Splines) written and maintained by Jeffrey S. Racine ([email protected]) with the invaluable assistance of Zhenghua Nie.


You can install the stable version on CRAN:

install.packages('crs', dependencies = TRUE)

Or download the zip ball or tar ball, decompress and run R CMD INSTALL on it, or install then use the devtools package to install the development version:

library(devtools); install_github('R-Package-crs', 'JeffreyRacine')

Note Windows users have to first install Rtools, while OS X users have to first install Xcode and the command line tools (in OS X 10.9 or higher, once you have Xcode installed, open a terminal and run xcode-select --install).

For more information on this project please visit the maintainer's website (


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.15-33 by Jeffrey S. Racine, 10 months ago

Report a bug at

Browse source code at

Authors: Jeffrey S. Racine [aut, cre] , Zhenghua Nie [aut] , Brian D. Ripley [ctb] (stepCV.R)

Documentation:   PDF Manual  

Task views: Optimization and Mathematical Programming

GPL (>= 3) license

Imports boot, stats, np, quantreg

Suggests logspline, quadprog, rgl

Imported by cops.

Suggested by laGP, mlr.

See at CRAN