Learn R Programming

npreg (version 1.1.1)

Nonparametric Regression via Smoothing Splines

Description

Multiple and generalized nonparametric regression using smoothing spline ANOVA models and generalized additive models, as described in Helwig (2020) . Includes support for Gaussian and non-Gaussian responses, smoothers for multiple types of predictors (including random intercepts), interactions between smoothers of mixed types, eight different methods for smoothing parameter selection, and flexible tools for diagnostics, inference, and prediction.

Copy Link

Version

Install

install.packages('npreg')

Monthly Downloads

438

Version

1.1.1

License

GPL (>= 2)

Maintainer

Nathaniel Helwig

Last Published

March 6th, 2026

Functions in npreg (1.1.1)

color.legend

Adds Color Legend to Plot Margin
StartupMessage

Startup Message for npreg
diagnostic.plots

Plot Nonparametric Regression Diagnostics
fitted

Extract Smooth Model Fitted Values
bin.sample

Bin Sample a Vector, Matrix, or Data Frame
gsm

Fit a Generalized Smooth Model
boot

Bootstrap a Fit Smooth
model.matrix

Construct Design Matrix for Fit Model
plotci

Generic X-Y Plotting with Confidence Intervals
number2color

Map Numbers to Colors
npreg-internals

Internal Functions for "npreg"
plot.gsm

Plot Effects for Generalized Smooth Model Fits
ordinal

Ordinal Smoothing Spline Basis and Penalty
plot.ss

Plot method for Smoothing Spline Fit and Bootstrap
msqrt

Matrix (Inverse?) Square Root
nominal

Nominal Smoothing Spline Basis and Penalty
plot.sm

Plot Effects for Smooth Model Fits
predict.ss

Predict method for Smoothing Spline Fits
smooth.influence

Nonparametric Regression Diagnostics
smooth.influence.measures

Nonparametric Regression Deletion Diagnostics
residuals

Extract Model Residuals
predict.gsm

Predict method for Generalized Smooth Model Fits
predict.sm

Predict method for Smooth Model Fits
psolve

Pseudo-Solve a System of Equations
sm

Fit a Smooth Model
polynomial

Polynomial Smoothing Spline Basis and Penalty
spherical

Spherical Spline Basis and Penalty
ss

Fit a Smoothing Spline
vcov

Calculate Variance-Covariance Matrix for a Fitted Smooth Model
weights

Extract Smooth Model Weights
theta.mle

MLE of Theta for Negative Binomial
summary

Summary methods for Fit Models
wtd.mean

Weighted Arithmetic Mean
wtd.quantile

Weighted Quantiles
thinplate

Thin Plate Spline Basis and Penalty
varinf

Variance Inflation Factors
varimp

Variable Importance Indices
wtd.var

Weighted Variance and Standard Deviation
NegBin

Family Function for Negative Binomial
coef

Extract Smooth Model Coefficients
deviance

Smooth Model Deviance