Package: cgam 1.32

cgam: Constrained Generalized Additive Model

A constrained generalized additive model is fitted by the cgam routine. Given a set of predictors, each of which may have a shape or order restrictions, the maximum likelihood estimator for the constrained generalized additive model is found using an iteratively re-weighted cone projection algorithm. The ShapeSelect routine chooses a subset of predictor variables and describes the component relationships with the response. For each predictor, the user needs only specify a set of possible shape or order restrictions. A model selection method chooses the shapes and orderings of the relationships as well as the variables. The cone information criterion (CIC) is used to select the best combination of variables and shapes. A genetic algorithm may be used when the set of possible models is large. In addition, the cgam routine implements a two-dimensional isotonic regression using warped-plane splines without additivity assumptions. It can also fit a convex or concave regression surface with triangle splines without additivity assumptions. See Liao X, Meyer MC (2019)<doi:10.18637/jss.v089.i05> for more details.

Authors:Mary Meyer [aut], Xiyue Liao [aut, cre]

cgam_1.32.tar.gz
cgam_1.32.zip(r-4.7)cgam_1.32.zip(r-4.6)cgam_1.32.zip(r-4.5)
cgam_1.32.tgz(r-4.6-any)cgam_1.32.tgz(r-4.5-any)
cgam_1.32.tar.gz(r-4.7-any)cgam_1.32.tar.gz(r-4.6-any)
cgam_1.32.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
cgam/json (API)

# Install 'cgam' in R:
install.packages('cgam', repos = c('https://xliaosdsu.r-universe.dev', 'https://cloud.r-project.org'))
Datasets:
  • COforest - Colorado Forest Data Set
  • cubic - A Data Set for Cgam
  • mental - Alachua County Study of Mental Impairment
  • plasma - A Data Set for Cgam

On CRAN:

Conda:

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

4.50 score 1 stars 3 packages 60 scripts 3.9k downloads 34 exports 47 dependencies

Last updated from:73ca13014b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK182
source / vignettesOK212
linux-release-x86_64OK215
macos-release-arm64OK163
macos-oldrel-arm64OK264
windows-develOK180
windows-releaseOK183
windows-oldrelOK191
wasm-releaseOK117

Exports:cgamcgammconcconvdecrdecr.concdecr.convincrincr.concincr.convOrdplotperspplotpersp_controlpredict.cgamss.concs.conc.concs.convs.conv.convs.decrs.decr.concs.decr.convs.decr.decrs.decr.incrs.incrs.incr.concs.incr.convs.incr.decrs.incr.incrshapeselectshapeselect_controltestpartreeumbrella

Dependencies:bootcliconeprojcpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglatticelifecyclelme4magrittrMASSMatrixminqanlmenloptrpillarpkgconfigquadprogR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangrstudioapiS7scalessplines2statmodsvDialogssvGUItibbletidyselectutf8vctrsviridisLitewithrzeallot

Readme and manuals

Help Manual

Help pageTopics
Constrained Generalized Additive Model Fittingcgam
Constrained Generalized Additive Mixed-Effects Model Fittingcgamm
Colorado Forest Data SetCOforest
Specify a Concave Shape-Restriction in a CGAM Formulaconc
Specify a Convex Shape-Restriction in a CGAM Formulaconv
A Data Set for Cgamcubic
Specify a Decreasing Shape-Restriction in a CGAM Formuladecr
Specify a Decreasing and Concave Shape-Restriction in a CGAM Formuladecr.conc
Specify a Decreasing and Convex Shape-Restriction in a CGAM Formuladecr.conv
Specify an Increasing Shape-Restriction in a CGAM Formulaincr
Specify an Increasing and Concave Shape-Restriction in a CGAM Formulaincr.conc
Specify an Increasing and Convex Shape-Restriction in a CGAM Formulaincr.conv
Alachua County Study of Mental Impairmentmental
Specify an Ordered Categorical Family in a CGAM FormulaOrd
A Data Set for Cgamplasma
Create a 3D Plot for a CGAM Objectplotpersp
Control Parameters for plotpersp.cgamplotpersp_control
Predict Method for CGAM Fitspredict.cgam
Specify a Smooth Shape-Restriction in a CGAM Formulas
Specify a Smooth and Concave Shape-Restriction in a CGAM Formulas.conc
Specify a Doubly-Concave Shape-Restriction in a CGAM Formulas.conc.conc
Specify a Smooth and Convex Shape-Restriction in a CGAM Formulas.conv
Specify a Doubly-convex Shape-Restriction in a CGAM Formulas.conv.conv
Specify a Smooth and Decreasing Shape-Restriction in a CGAM Formulas.decr
Specify a Smooth, Decreasing and Concave Shape-Restriction in a CGAM Formulas.decr.conc
Specify a Smooth, Decreasing and Convex Shape-Restriction in a CGAM Formulas.decr.conv
Specify a Doubly-Decreasing Shape-Restriction in a CGAM Formulas.decr.decr
Specify a Decreasing-Increasing Shape-Restriction in a CGAM Formulas.decr.incr
Specify a Smooth and Increasing Shape-Restriction in a CGAM Formulas.incr
Specify a Smooth, Increasing and Concave Shape-Restriction in a CGAM Formulas.incr.conc
Specify an Smooth, Increasing and Convex Shape-Restriction in a CGAM Formulas.incr.conv
Specify an Increasing-Decreasing Shape-Restriction in a CGAM Formulas.incr.decr
Specify a Doubly-Increasing Shape-Restriction in a CGAM Formulas.incr.incr
Shape selection for additive components with shape or order constraintsshapeselect
Control parameters for 'shapeselect()'shapeselect_control
Parametric Monotone/Quadratic vs Smooth Constrained Testtestpar
Specify a Tree-Ordering in a CGAM Formulatree
Specify an Umbrella-Ordering in a CGAM Formulaumbrella