Learn R Programming

npreg (version 1.1.0)

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

595

Version

1.1.0

License

GPL (>= 2)

Maintainer

Nathaniel Helwig

Last Published

March 29th, 2024

Functions in npreg (1.1.0)

plot.ss

Plot method for Smoothing Spline Fit and Bootstrap
number2color

Map Numbers to Colors
plotci

Generic X-Y Plotting with Confidence Intervals
model.matrix

Construct Design Matrix for Fit Model
msqrt

Matrix (Inverse?) Square Root
ordinal

Ordinal Smoothing Spline Basis and Penalty
npreg-internals

Internal Functions for "npreg"
nominal

Nominal Smoothing Spline Basis and Penalty
plot.gsm

Plot Effects for Generalized Smooth Model Fits
plot.sm

Plot Effects for Smooth Model Fits
predict.sm

Predict method for Smooth Model Fits
smooth.influence.measures

Nonparametric Regression Deletion Diagnostics
predict.ss

Predict method for Smoothing Spline Fits
sm

Fit a Smooth Model
psolve

Pseudo-Solve a System of Equations
residuals

Extract Model Residuals
predict.gsm

Predict method for Generalized Smooth Model Fits
polynomial

Polynomial Smoothing Spline Basis and Penalty
spherical

Spherical Spline Basis and Penalty
smooth.influence

Nonparametric Regression Diagnostics
vcov

Calculate Variance-Covariance Matrix for a Fitted Smooth Model
ss

Fit a Smoothing Spline
wtd.quantile

Weighted Quantiles
wtd.mean

Weighted Arithmetic Mean
weights

Extract Smooth Model Weights
varimp

Variable Importance Indices
wtd.var

Weighted Variance and Standard Deviation
summary

Summary methods for Fit Models
varinf

Variance Inflation Factors
thinplate

Thin Plate Spline Basis and Penalty
theta.mle

MLE of Theta for Negative Binomial
fitted

Extract Smooth Model Fitted Values
NegBin

Family Function for Negative Binomial
StartupMessage

Startup Message for npreg
coef

Extract Smooth Model Coefficients
deviance

Smooth Model Deviance
bin.sample

Bin Sample a Vector, Matrix, or Data Frame
diagnostic.plots

Plot Nonparametric Regression Diagnostics
gsm

Fit a Generalized Smooth Model
boot

Bootstrap a Fit Smooth
color.legend

Adds Color Legend to Plot Margin