Skip to content

scam

1.2-23Package record

Shape Constrained Additive Models

15packages dependsuggested by 7
207.8Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 5.2 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-07
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.2-23
READMENoVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
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

207.8K
CRAN downloads in the past year
Rank #823 · ~569/day · ~17.3K/mo
Daily download trend is not available in this view yet.
22.7K30 days
55.2K90 days
207.8K1 year
Compare downloads with other packages →
Also on4.1K r2u4 autocran5.6K conda_forge174 c2d4u

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)

Installing scam adds no packages beyond those that come with R.

Depends (1)
R >= 3.6.0
Imports (6)
mgcvmethodsstatsgraphicsMatrixsplines
LinkingTo (0)
none
Suggests (3)
Enhances (0)
none
Reverse dependencies
15direct
19indirect
Depends 1 · Imports 14
Suggested by 7
Show all 22 packagesHide all 22 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 1.0 (2012)
Releases (35)

Pick two releases to compare their code metrics.

  • 1.2-23Latest
    record
    2026-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
  • R
    R 4.6.0 released · 2026-04-24
  • 1.2-22
    record
    2026-03-12 · diff ↗
  • 1.2-21
    record
    2026-01-22 · diff ↗ ·
    added 1 export
    vcov.scam
  • 1.2-20
    record
    2025-10-14 · diff ↗
  • 1.2-19
    record
    2025-05-26 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2-18
    record
    2025-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
    record
    2024-06-19 · diff ↗ ·
    added 2 exports
    Predict.matrix.lmpi.smooth, smooth.construct.lmpi.smooth.spec
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2-16
    record
    2024-02-23 · diff ↗
  • 1.2-15
    record
    2024-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
  • R
    R 4.3.0 released · 2023-04-21
  • 1.2-14
    record
    2023-04-14 · diff ↗
  • 1.2-13
    record
    2022-09-09 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
Show 35 earlier eventsHide 35 earlier events
  • 1.2-12
    record
    2021-08-10 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.2-11
    record
    2021-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-10
    record
    2021-02-01 · diff ↗
  • 1.2-9
    record
    2020-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-8
    record
    2020-10-23 · diff ↗
  • 1.2-7
    record
    2020-09-24 · diff ↗
  • 1.2-6
    record
    2020-06-10 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.2-5
    record
    2019-08-19 · diff ↗
  • 1.2-4
    record
    2019-06-14 · diff ↗ ·
    added 1 export
    scam.control
  • R
    R 3.6.0 released · 2019-04-26
  • 1.2-3
    record
    2018-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
  • R
    R 3.5.0 released · 2018-04-23
  • 1.2-2
    record
    2017-09-24 · diff ↗ ·
    added 2 exports
    logLik.scam, formula.scam
  • R
    R 3.4.0 released · 2017-04-21
  • 1.2-1
    record
    2017-02-16 · diff ↗ ·
    added 2 exports
    Predict.matrix.po.smooth, smooth.construct.po.smooth.spec
  • 1.2-0
    record
    2016-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
  • R
    R 3.3.0 released · 2016-05-03
  • 1.1-9
    record
    2015-06-19 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 1.1-8
    record
    2014-09-24 · diff ↗
  • 1.1-7
    record
    2014-05-27 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 1.1-6
    record
    2013-10-02 · diff ↗ ·
    removed 2 exports
    derivative.smooth, extrapolate.uni.scam
    added 2 exports
    derivative.scam, vis.scam
  • 1.1-5
    record
    2013-09-14 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 1.1-4
    record
    2012-10-08 · diff ↗
  • 1.1-3
    record
    2012-09-23 · diff ↗
  • 1.1-2
    record
    2012-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
  • R
    R 2.15.0 released · 2012-03-30
  • 1.1-1
    record
    2012-01-28 · diff ↗
  • 1.1
    record
    2012-01-22 · diff ↗
  • 1.0
    record
    2012-01-20
  • R
    R 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")
Pya, N. (2026). scam: Shape Constrained Additive Models (Version 1.2-23) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for scam version 1.2-23 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy