crs v0.15-27


Monthly downloads



by Jeffrey Racine

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 ( 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 (

Functions in crs

Name Description
crs Categorical Regression Splines
crssigtest Regression Spline Significance Test with Mixed Data Types
Engel95 1995 British Family Expenditure Survey
cps71 Canadian High School Graduate Earnings
wage1 Cross-Sectional Data on Wages
frscv Categorical Factor Regression Spline Cross-Validation
clsd Categorical Logspline Density
crs-package Nonparametric Regression Splines with Continuous and Categorical Predictors
krscvNOMAD Categorical Kernel Regression Spline Cross-Validation
uniquecombs Find the unique rows in a matrix GSL (GNU Scientific Library) B-spline/B-spline Derivatives
frscvNOMAD Categorical Factor Regression Spline Cross-Validation
glp.model.matrix Utility function for constructing generalized polynomial smooths
krscv Categorical Kernel Regression Spline Cross-Validation
npglpreg Generalized Local Polynomial Regression
snomadr Utility functions for constructing tensor product smooths
No Results!

Last month downloads


Date 2017-05-06
License GPL
Repository CRAN
NeedsCompilation yes
Packaged 2017-05-06 12:41:12 UTC; jracine
Date/Publication 2017-05-07 06:19:40 UTC

Include our badge in your README