Learn R Programming

npregfast: Nonparametric Estimation of Regression Models with Factor-by-Curve Interactions

npregfast is an R package for obtain nonparametric estimates of regression models with or without factor-by-curve interactions using local polynomial kernel smoothers or splines. Additionally, a parametric model (allometric model) can be estimated. Particular features of the package are facilities for fast smoothness estimation, and the calculation of their first and second derivative. Users can define the smoothers parameters. Confidence intervals calculation is provided by bootstrap methods. Binning techniques were applied to speed up computation in the estimation and testing processes.

You can view a live interactive demo to see part of its capabilities at http://sestelo.shinyapps.io/npregfast.

Installation

npregfast is available through both CRAN and GitHub.

Get the released version from CRAN:

install.packages("npregfast")

Or the development version from GitHub:

# install.packages("devtools")
devtools::install_github("sestelo/npregfast")

Copy Link

Version

Install

install.packages('npregfast')

Monthly Downloads

320

Version

1.6.0

License

MIT + file LICENSE

Maintainer

Marta Sestelo

Last Published

October 10th, 2025

Functions in npregfast (1.6.0)

frfast

Fitting nonparametric models
globaltest

Testing the equality of the M curves specific to each level
runExample

Run npregfast example
plot.frfast

Visualization of frfast objects with the base graphics
summary.frfast

Summarizing fits of frfast class
predict.frfast

Prediction from fitted frfast model
reexports

Objects exported from other packages
autoplot.frfast

Visualization of frfast objects with ggplot2 graphics
children

Children dataset.
barnacle

Barnacle dataset.
criticaldiff

Differences between the critical points for two factor's levels
npregfast

npregfast: Nonparametric Estimation of Regression Models with Factor-by-Curve Interactions.
localtest

Testing the equality of critical points
critical

Critical points of the regression function
allotest

Bootstrap based test for testing an allometric model