Crandore Hub

npRmpi

Parallel Nonparametric Kernel Smoothing Methods for Mixed Data Types Using 'MPI'

Nonparametric (and semiparametric) kernel methods that seamlessly handle a mix of continuous, unordered, and ordered factor data types. This package is a parallel implementation of the 'np' package based on the 'MPI' specification that incorporates the 'Rmpi' package (Hao Yu <hyu@stats.uwo.ca>) with minor modifications and we are extremely grateful to Hao Yu for his contributions to the 'R' community. We 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://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.

README

# npRmpi

This is the R package `npRmpi` (Parallel Nonparametric Kernel Methods for Mixed Datatypes) written and maintained by Jeffrey S. Racine (racinej@mcmaster.ca) and co-authored by Tristen Hayfield (tristen.hayfield@gmail.com).

## Installation

Presuming that a working implementation of MPI exists on the target machine, you can install the stable version on [CRAN](https://cran.r-project.org/package=npRmpi):

```r
install.packages('npRmpi', dependencies = TRUE)
```

Or download the [zip ball](https://github.com/JeffreyRacine/R-Package-np/zipball/npRmpi) or
[tar ball](https://github.com/JeffreyRacine/R-Package-np/tarball/npRmpi),
decompress and run `R CMD INSTALL` on it, or use the **devtools** package
to install the development version:

```r
library(devtools); install_github('JeffreyRacine/R-Package-np', ref = 'npRmpi')
```

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.

## MPI (MPICH via MacPorts) Quick Setup

```bash
export RMPI_TYPE=MPICH
export RMPI_INCLUDE=/opt/local/include/mpich-mp
export RMPI_LIB_PATH=/opt/local/lib/mpich-mp
export RMPI_LIBS="-L/opt/local/lib/mpich-mp -lmpi"
export CC=mpicc
export CXX=mpicxx
```

Then build/install from the repo:

```bash
R CMD build .
R CMD INSTALL npRmpi_0.60-20.tar.gz
```

See `BUILD.md` and `WORKTREES.md` in this repo for local build details.

For more information on this project please visit the maintainer's website (https://experts.mcmaster.ca/people/racinej).

Versions across snapshots

VersionRepositoryFileSize
0.60-20 rolling linux/jammy R-4.5 npRmpi_0.60-20.tar.gz 1.1 MiB
0.60-20 rolling linux/noble R-4.5 npRmpi_0.60-20.tar.gz 1.1 MiB
0.60-20 rolling source/ R- npRmpi_0.60-20.tar.gz 1.1 MiB
0.60-20 latest linux/jammy R-4.5 npRmpi_0.60-20.tar.gz 1.1 MiB
0.60-20 latest linux/noble R-4.5 npRmpi_0.60-20.tar.gz 1.1 MiB
0.60-20 latest source/ R- npRmpi_0.60-20.tar.gz 1.1 MiB
0.60-20 2026-04-26 source/ R- npRmpi_0.60-20.tar.gz 1.1 MiB
0.60-20 2026-04-23 source/ R- npRmpi_0.60-20.tar.gz 1.1 MiB

Dependencies (latest)

Imports

Suggests