Skip to content
R package np (Nonparametric Kernel Smoothing Methods for Mixed Data Types)
Failed to load latest commit information.
data Adding Engel95 data (description to be updated) May 31, 2011
demo Added consistency check for lower and upper bounds in constrained demo. Dec 6, 2013
inst moved COPYRIGHTS to new location Nov 5, 2013
vignettes Improved screen i/o when smooth.residuals=TRUE/FALSE, cleaned up Jul 11, 2015
.gitignore added a .gitignore file to ignore some build files Jun 13, 2013
CHANGELOG fixed glitch in npconmode when randomizing if all probabilities are e… Dec 10, 2014
DESCRIPTION More use of NZD (no zero divide) added Sep 30, 2015
NAMESPACE Updated install.packages() call in from github (deprecated … Jun 29, 2015
cleanup Added Tristen's sort patch, my changes to initialization for Jun 1, 2014 np project May 11, 2010
npver Bumped up version number for submission to CRAN Jun 27, 2014


This is the R package `np' (Nonparametric Kernel Methods for Mixed Datatypes) written and maintained by Jeffrey S. Racine ( and co-authored by Tristen Hayfield (


You can install the stable version on CRAN:

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

Or download the zip ball or tar ball, decompress and run R CMD INSTALL on it.

Alternatively, you can install the development version but before doing so 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). Note also that versions of e.g. Rtools are paired with versions of R so ensure you have the latest version of R installed prior to commencing this process.

After installing Rtools/Xcode and devtools (via install.packages("devtools")), install the development package using the following command:

library(devtools); install_github('JeffreyRacine/R-Package-np')

Note also that if you wish a fast install without the building of vignettes (or if you do not have TeX installed on your system), add the option build_vignettes=FALSE to the install_github() call.

Note that if you wish to install the MPI-enabled development version of the package (i.e. the package `npRmpi'), you can add the option ref='npRmpi' to the install_github call above presuming that your system has the required MPI subsystem installed (see my homepage for further details).

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

Something went wrong with that request. Please try again.