Shape Constrained Additive Models
Overview
Generalized additive models under shape constraints on the component functions of the linear predictor. Models can include multiple shape-constrained (univariate and bivariate) and unconstrained terms. Routines of the package 'mgcv' are used to set up the model matrix, print, and plot the results. Multiple smoothing parameter estimation by the Generalized Cross Validation or similar. See Pya and Wood (2015) doi:10.1007/s11222-013-9448-7 for an overview. A broad selection of shape-constrained smoothers, linear functionals of smooths with shape constraints, and Gaussian models with AR1 residuals.
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-07
- OK14 OK2026-03-10
Documentation
- Help pages
- 59 (10 internal)includes a package overview page
- Examples that run
- 70%32 run in a plain check · 12 only when donttest examples are enabled (R CMD check --as-cran) · 2 hold no code
- Exported functions with examples
- 76%
- Documented parameters
- 83%
- Return-value docs
- 91%
- Help pages citing references
- 92%
Downloads
Dependencies
Installing scam adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.2-23Latest2026-10-16 · current release · diff ↗ ·
added 5 exports
model.matrix.scam, Predict.matrix.teid.smooth, Predict.matrix.tedi.smooth, smooth.construct.teid.smooth.spec, smooth.construct.tedi.smooth.spec - RR 4.6.0 released · 2026-04-24
- 1.2-222026-03-12 · diff ↗
- 1.2-21
- 1.2-202025-10-14 · diff ↗
- 1.2-192025-05-26 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.2-182025-01-17 · diff ↗ ·
added 8 exports
Predict.matrix.cpopspline.smooth, Predict.matrix.ipo.smooth, Predict.matrix.dpo.smooth, Predict.matrix.lipl.smooth, smooth.construct.ipo.smooth.spec, smooth.construct.dpo.smooth.spec, smooth.construct.cpop.smooth.spec, smooth.construct.lipl.smooth.spec - 1.2-17
- RR 4.4.0 released · 2024-04-24
- 1.2-162024-02-23 · diff ↗
- 1.2-152024-01-25 · diff ↗ ·
added 5 exports
Predict.matrix.tismi.smooth, Predict.matrix.tismd.smooth, qq.scam, smooth.construct.tismi.smooth.spec, smooth.construct.tismd.smooth.spec - RR 4.3.0 released · 2023-04-21
- 1.2-142023-04-14 · diff ↗
- 1.2-132022-09-09 · diff ↗
- RR 4.2.0 released · 2022-04-22
Show 35 earlier eventsHide 35 earlier events
- 1.2-122021-08-10 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.2-112021-04-01 · diff ↗ ·
added 16 exports
Predict.matrix.mpdBy.smooth, Predict.matrix.mpiBy.smooth, Predict.matrix.cxBy.smooth, Predict.matrix.cvBy.smooth, Predict.matrix.mdcxBy.smooth, Predict.matrix.mdcvBy.smooth, Predict.matrix.micxBy.smooth, Predict.matrix.micvBy.smooth, smooth.construct.mpdBy.smooth.spec, smooth.construct.mpiBy.smooth.spec, smooth.construct.cxBy.smooth.spec, smooth.construct.cvBy.smooth.spec, smooth.construct.mdcxBy.smooth.spec, smooth.construct.mdcvBy.smooth.spec, smooth.construct.micxBy.smooth.spec, smooth.construct.micvBy.smooth.spec - 1.2-102021-02-01 · diff ↗
- 1.2-92020-12-09 · diff ↗ ·
added 4 exports
Predict.matrix.mifo.smooth, Predict.matrix.miso.smooth, smooth.construct.mifo.smooth.spec, smooth.construct.miso.smooth.spec - 1.2-82020-10-23 · diff ↗
- 1.2-72020-09-24 · diff ↗
- 1.2-62020-06-10 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.2-52019-08-19 · diff ↗
- 1.2-4
- RR 3.6.0 released · 2019-04-26
- 1.2-32018-09-25 · diff ↗ ·
added 6 exports
Predict.matrix.tecvcv.smooth, Predict.matrix.tecxcx.smooth, Predict.matrix.tecxcv.smooth, smooth.construct.tecvcv.smooth.spec, smooth.construct.tecxcx.smooth.spec, smooth.construct.tecxcv.smooth.spec - RR 3.5.0 released · 2018-04-23
- 1.2-2
- RR 3.4.0 released · 2017-04-21
- 1.2-1
- 1.2-02016-06-02 · diff ↗ ·
added 15 exports
anova.scam, print.anova.scam, marginal.matrices.tescv.ps, Predict.matrix.temicx.smooth, Predict.matrix.temicv.smooth, Predict.matrix.tedecx.smooth, Predict.matrix.tedecv.smooth, Predict.matrix.tescx.smooth, Predict.matrix.tescv.smooth, smooth.construct.temicx.smooth.spec, smooth.construct.temicv.smooth.spec, smooth.construct.tedecx.smooth.spec, smooth.construct.tedecv.smooth.spec, smooth.construct.tescx.smooth.spec, smooth.construct.tescv.smooth.spec - RR 3.3.0 released · 2016-05-03
- 1.1-92015-06-19 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 1.1-82014-09-24 · diff ↗
- 1.1-72014-05-27 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 1.1-62013-10-02 · diff ↗ ·
removed 2 exports
derivative.smooth, extrapolate.uni.scamadded 2 exports
derivative.scam, vis.scam - 1.1-52013-09-14 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 1.1-42012-10-08 · diff ↗
- 1.1-32012-09-23 · diff ↗
- 1.1-22012-08-05 · diff ↗ ·
added 5 exports
extrapolate.uni.scam, Predict.matrix.cv.smooth, Predict.matrix.cx.smooth, smooth.construct.cv.smooth.spec, smooth.construct.cx.smooth.spec - RR 2.15.0 released · 2012-03-30
- 1.1-12012-01-28 · diff ↗
- 1.12012-01-22 · diff ↗
- 1.02012-01-20
- RR 2.14.0 released · 2011-10-31
Package metadata
- First published
- 2012-01-20
- Total releases
- 35 / 14 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.6.0
- Download size
- 188 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("scam")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.