Skip to content

npreg

Nonparametric Regression via Smoothing Splines

v1.1.1 · Mar 6, 2026 · GPL (>= 2)

Description

Multiple and generalized nonparametric regression using smoothing spline ANOVA models and generalized additive models, as described in Helwig (2020) <doi:10.4135/9781526421036885885>. 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.

Downloads

523

Last 30 days

7137th

523

Last 90 days

523

Last year

CRAN Check Status

1 ERROR
13 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang ERROR
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (15 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Nathaniel E. Helwig <helwig@umn.edu>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = c("Nathaniel", "E."),
                    family = "Helwig",
                    role = c("aut", "cre"),
                    email = "helwig@umn.edu")
as necessary.
ERROR r-devel-linux-x86_64-debian-clang

examples

Running examples in ‘npreg-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: smooth.influence.measures
> ### Title: Nonparametric Regression Deletion Diagnostics
> ### Aliases: smooth.influence.measures rstandard.ss rstandard.sm
> ###   rstandard.gsm rstudent.ss rstudent.sm rstudent.gsm dfbeta.ss
> ###   dfbeta.sm dfbeta.gsm dfbetas.ss dfbetas.sm dfbetas.gsm cov.ratio
> ###   cooks.distance.ss cooks.distance.sm cooks.distance.gsm hatvalues.ss
> ###   hatvalues.sm hatvalues.gsm
> 
> ### ** Examples
> 
> # generate data
> set.seed(1)
> n <- 100
> x <- seq(0, 1, length.out = n)
> fx <- 2 + 3 * x + sin(2 * pi * x)
> y <- fx + rnorm(n, sd = 0.5)
> 
> # fit models
> mod.ss <- ss(x, y, nknots = 10)
> mod.sm <- sm(y ~ x, knots = 10)
> mod.gsm <- gsm(y ~ x, knots = 10)
> 
> # calculate influence
> infl.ss <- smooth.influence.measures(mod.ss)
Error in UseMethod("dffits") : 
  no applicable method for 'dffits' applied to an object of class "ss"
Calls: smooth.influence.measures -> cbind -> dffits
Execution halted
OK r-devel-linux-x86_64-debian-gcc

*


            
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
OK r-oldrel-macos-arm64

*


            
OK r-oldrel-macos-x86_64

*


            
OK r-oldrel-windows-x86_64

*


            
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Nathaniel E. Helwig <helwig@umn.edu>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = c("Nathaniel", "E."),
                    family = "Helwig",
                    role = c("aut", "cre"),
                    email = "helwig@umn.edu")
as necessary.

Reverse Dependencies (2)

Dependency Network

Dependencies Reverse dependencies BSTFA insulin.secretion npreg

Version History

new 1.1.1 Mar 9, 2026