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, < https://www.nserc-crsng.gc.ca>), the Social Sciences and Humanities Research Council of Canada (SSHRC, < https://www.sshrc-crsh.gc.ca>), and the Shared Hierarchical Academic Research Computing Network (SHARCNET, < https://www.sharcnet.ca>). 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.


crs

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.

Installation

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 (https://www.socialsciences.mcmaster.ca/people/racinej).

Release Validation

CRAN-ready release claims should use the shared release gate:

cd /Users/jracine/Development
./release_protocol/run_crs_release_gate.sh

The gate builds the source tarball, installs it into a private library, runs installed smoke tests, runs tarball-first R CMD check --as-cran, records reverse-dependency inventory, and runs the containerized rchk native-code protection check when feasible (RUN_RCHK=auto by default).

For changes touching src/, NOMAD interface code, registered native interfaces, or .C/.Call payload lifetimes, require local rchk proof when infrastructure is available:

cd /Users/jracine/Development
RUN_RCHK=1 ./release_protocol/run_crs_release_gate.sh

Use RUN_RCHK=auto for ordinary full release rehearsal; it records a precise SKIP when Docker/rchk infrastructure is unavailable.

Reference manual

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

install.packages("crs")

0.15-46 by Jeffrey S. Racine, 2 months ago


https://github.com/JeffreyRacine/R-Package-crs


Report a bug at https://github.com/JeffreyRacine/R-Package-crs/issues


Browse source code at https://github.com/cran/crs


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


Documentation:   PDF Manual  


GPL (>= 3) license


Imports boot, stats, quantreg

Suggests ggplot2, knitr, logspline, MASS, quadprog, rgl, rmarkdown, testthat


Imported by bdlnm, cops, np, npRmpi.

Suggested by laGP, mlr.


See at CRAN