Package: scam 1.2-17

Natalya Pya

scam: Shape Constrained Additive Models

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.

Authors:Natalya Pya <[email protected]>

scam_1.2-17.tar.gz
scam_1.2-17.tar.gz(r-4.5-noble)scam_1.2-17.tar.gz(r-4.4-noble)
scam_1.2-17.tgz(r-4.4-emscripten)scam_1.2-17.tgz(r-4.3-emscripten)
scam.pdf |scam.html
scam/json (API)

# Install 'scam' in R:
install.packages('scam', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

7.03 score 5 stars 22 packages 320 scripts 6.8k downloads 5 mentions 97 exports 4 dependencies

Last updated 5 months agofrom:c134d04858. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 17 2024
R-4.5-linux-x86_64OKNov 17 2024

Exports:anova.scambfgs_gcv.ubrecheck.analyticalderivative.scamformula.scamgcv.ubre_gradlogLik.scammarginal.matrices.tescv.psmarginal.matrices.tesmi1.psmarginal.matrices.tesmi2.psplot.scamPredict.matrix.cv.smoothPredict.matrix.cvBy.smoothPredict.matrix.cx.smoothPredict.matrix.cxBy.smoothPredict.matrix.lmpi.smoothPredict.matrix.mdcv.smoothPredict.matrix.mdcvBy.smoothPredict.matrix.mdcx.smoothPredict.matrix.mdcxBy.smoothPredict.matrix.micv.smoothPredict.matrix.micvBy.smoothPredict.matrix.micx.smoothPredict.matrix.micxBy.smoothPredict.matrix.mifo.smoothPredict.matrix.miso.smoothPredict.matrix.mpd.smoothPredict.matrix.mpdBy.smoothPredict.matrix.mpi.smoothPredict.matrix.mpiBy.smoothPredict.matrix.po.smoothPredict.matrix.tecvcv.smoothPredict.matrix.tecxcv.smoothPredict.matrix.tecxcx.smoothPredict.matrix.tedecv.smoothPredict.matrix.tedecx.smoothPredict.matrix.tedmd.smoothPredict.matrix.tedmi.smoothPredict.matrix.temicv.smoothPredict.matrix.temicx.smoothPredict.matrix.tescv.smoothPredict.matrix.tescx.smoothPredict.matrix.tesmd1.smoothPredict.matrix.tesmd2.smoothPredict.matrix.tesmi1.smoothPredict.matrix.tesmi2.smoothPredict.matrix.tismd.smoothPredict.matrix.tismi.smoothpredict.scamprint.anova.scamprint.scamprint.summary.scamqq.scamresiduals.scamscamscam.checkscam.controlscam.fitsmooth.construct.cv.smooth.specsmooth.construct.cvBy.smooth.specsmooth.construct.cx.smooth.specsmooth.construct.cxBy.smooth.specsmooth.construct.lmpi.smooth.specsmooth.construct.mdcv.smooth.specsmooth.construct.mdcvBy.smooth.specsmooth.construct.mdcx.smooth.specsmooth.construct.mdcxBy.smooth.specsmooth.construct.micv.smooth.specsmooth.construct.micvBy.smooth.specsmooth.construct.micx.smooth.specsmooth.construct.micxBy.smooth.specsmooth.construct.mifo.smooth.specsmooth.construct.miso.smooth.specsmooth.construct.mpd.smooth.specsmooth.construct.mpdBy.smooth.specsmooth.construct.mpi.smooth.specsmooth.construct.mpiBy.smooth.specsmooth.construct.po.smooth.specsmooth.construct.tecvcv.smooth.specsmooth.construct.tecxcv.smooth.specsmooth.construct.tecxcx.smooth.specsmooth.construct.tedecv.smooth.specsmooth.construct.tedecx.smooth.specsmooth.construct.tedmd.smooth.specsmooth.construct.tedmi.smooth.specsmooth.construct.temicv.smooth.specsmooth.construct.temicx.smooth.specsmooth.construct.tescv.smooth.specsmooth.construct.tescx.smooth.specsmooth.construct.tesmd1.smooth.specsmooth.construct.tesmd2.smooth.specsmooth.construct.tesmi1.smooth.specsmooth.construct.tesmi2.smooth.specsmooth.construct.tismd.smooth.specsmooth.construct.tismi.smooth.specsummary.scamvis.scam

Dependencies:latticeMatrixmgcvnlme

Readme and manuals

Help Manual

Help pageTopics
Shape Constrained Additive Modelsscam-package
Approximate hypothesis tests related to SCAM fitsanova.scam print.anova.scam
Multiple Smoothing Parameter Estimation by GCV/UBREbfgs_gcv.ubre
Checking the analytical gradient of the GCV/UBRE scorecheck.analytical
Derivative of the univariate smooth model termsderivative.scam
SCAM formulaformula.scam
The GCV/UBRE score value and its gradientgcv.ubre_grad
Linear functionals of a smooth in GAMsfunction.predictors linear.functional.terms signal.regression
Log likelihood for a fitted SCAM, for AICAIC.scam logLik.scam
Constructs marginal model matrices for "tescv" and "tescx" bivariate smooths in case of B-splines basis functions for both unconstrained marginal smoothsmarginal.matrices.tescv.ps
Constructs marginal model matrices for "tesmi1" and "tesmd1" bivariate smooths in case of B-splines basis functions for both unconstrained marginal smoothsmarginal.matrices.tesmi1.ps
Constructs marginal model matrices for "tesmi2" and "tesmd2" bivariate smooths in case of B-splines basis functions for both unconstrained marginal smoothsmarginal.matrices.tesmi2.ps
SCAM plottingplot.scam
Predict matrix method functions for SCAMsPredict.matrix.cv.smooth Predict.matrix.cvBy.smooth Predict.matrix.cx.smooth Predict.matrix.cxBy.smooth Predict.matrix.lmpi.smooth Predict.matrix.mdcv.smooth Predict.matrix.mdcvBy.smooth Predict.matrix.mdcx.smooth Predict.matrix.mdcxBy.smooth Predict.matrix.micv.smooth Predict.matrix.micvBy.smooth Predict.matrix.micx.smooth Predict.matrix.micxBy.smooth Predict.matrix.mifo.smooth Predict.matrix.miso.smooth Predict.matrix.mpd.smooth Predict.matrix.mpdBy.smooth Predict.matrix.mpi.smooth Predict.matrix.mpiBy.smooth Predict.matrix.po.smooth Predict.matrix.tecvcv.smooth Predict.matrix.tecxcv.smooth Predict.matrix.tecxcx.smooth Predict.matrix.tedecv.smooth Predict.matrix.tedecx.smooth Predict.matrix.tedmd.smooth Predict.matrix.tedmi.smooth Predict.matrix.temicv.smooth Predict.matrix.temicx.smooth Predict.matrix.tescv.smooth Predict.matrix.tescx.smooth Predict.matrix.tesmd1.smooth Predict.matrix.tesmd2.smooth Predict.matrix.tesmi1.smooth Predict.matrix.tesmi2.smooth Predict.matrix.tismd.smooth Predict.matrix.tismi.smooth
Prediction from fitted SCAM modelpredict.scam
Print a SCAM objectprint.scam
QQ plots for scam model residualsqq.scam
SCAM residualsresiduals.scam
Shape constrained additive models (SCAM) and integrated smoothness selectionscam
Some diagnostics for a fitted scam objectscam.check
Setting SCAM fitting defaultsscam.control
Newton-Raphson method to fit SCAMscam.fit
Shape preserving smooth terms in SCAMshape.constrained.smooth.terms
Constructor for concave P-splines in SCAMssmooth.construct.cv.smooth.spec smooth.construct.cvBy.smooth.spec
Constructor for convex P-splines in SCAMssmooth.construct.cx.smooth.spec smooth.construct.cxBy.smooth.spec
Locally shape-constrained P-spline based constructor (LSCOP-spline): locally increasing splines up to a change point.smooth.construct.lmpi.smooth.spec
Constructor for monotone decreasing and concave P-splines in SCAMssmooth.construct.mdcv.smooth.spec smooth.construct.mdcvBy.smooth.spec
Constructor for monotone decreasing and convex P-splines in SCAMssmooth.construct.mdcx.smooth.spec smooth.construct.mdcxBy.smooth.spec
Constructor for monotone increasing and concave P-splines in SCAMssmooth.construct.micv.smooth.spec smooth.construct.micvBy.smooth.spec
Constructor for monotone increasing and convex P-splines in SCAMssmooth.construct.micx.smooth.spec smooth.construct.micxBy.smooth.spec
Constructor for monotone increasing SCOP-splines with an additional 'finish at zero' constraintsmooth.construct.mifo.smooth.spec
Constructor for monotone increasing SCOP-splines with an additional 'start at zero' constraintsmooth.construct.miso.smooth.spec
Constructor for monotone decreasing P-splines in SCAMssmooth.construct.mpd.smooth.spec smooth.construct.mpdBy.smooth.spec
Constructor for monotone increasing P-splines in SCAMssmooth.construct.mpi.smooth.spec smooth.construct.mpiBy.smooth.spec
Constructor for SCOP-splines with positivity constraintsmooth.construct.po.smooth.spec
Tensor product smoothing constructor for bivariate function subject to double concavity constraintsmooth.construct.tecvcv.smooth.spec
Tensor product smoothing constructor for bivariate function subject to mixed constraints: convexity constraint wrt the first covariate and concavity wrt the second onesmooth.construct.tecxcv.smooth.spec
Tensor product smoothing constructor for bivariate function subject to double convexity constraintsmooth.construct.tecxcx.smooth.spec
Tensor product smoothing constructor for bivariate function subject to mixed constraints: monotone decreasing constraint wrt the first covariate and concavity wrt the second onesmooth.construct.tedecv.smooth.spec
Tensor product smoothing constructor for bivariate function subject to mixed constraints: monotone decreasing constraint wrt the first covariate and convexity wrt the second onesmooth.construct.tedecx.smooth.spec
Tensor product smoothing constructor for bivariate function subject to double monotone decreasing constraintsmooth.construct.tedmd.smooth.spec
Tensor product smoothing constructor for bivariate function subject to double monotone increasing constraintsmooth.construct.tedmi.smooth.spec
Tensor product smoothing constructor for bivariate function subject to mixed constraints: monotone increasing constraint wrt the first covariate and concavity wrt the second onesmooth.construct.temicv.smooth.spec
Tensor product smoothing constructor for bivariate function subject to mixed constraints: monotone increasing constraint wrt the first covariate and convexity wrt the second onesmooth.construct.temicx.smooth.spec
Tensor product smoothing constructor for a bivariate function concave in the second covariatesmooth.construct.tescv.smooth.spec
Tensor product smoothing constructor for a bivariate function convex in the second covariatesmooth.construct.tescx.smooth.spec
Tensor product smoothing constructor for a bivariate function monotone decreasing in the first covariatesmooth.construct.tesmd1.smooth.spec
Tensor product smoothing constructor for a bivariate function monotone decreasing in the second covariatesmooth.construct.tesmd2.smooth.spec
Tensor product smoothing constructor for a bivariate function monotone increasing in the first covariatesmooth.construct.tesmi1.smooth.spec
Tensor product smoothing constructor for a bivariate function monotone increasing in the second covariatesmooth.construct.tesmi2.smooth.spec
Tensor product interaction with decreasing constraint along the first covariate and unconstrained along the second covariatesmooth.construct.tismd.smooth.spec
Tensor product interaction with increasing constraint along the first covariate and unconstrained along the second covariatesmooth.construct.tismi.smooth.spec
Summary for a SCAM fitprint.summary.scam summary.scam
Visualization of SCAM objectspersp vis.scam