Package: cgam 1.21

Xiyue Liao

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.21.tar.gz
cgam_1.21.tar.gz(r-4.5-noble)cgam_1.21.tar.gz(r-4.4-noble)
cgam_1.21.tgz(r-4.4-emscripten)
cgam.pdf |cgam.html
cgam/json (API)

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

Peer review:

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

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

34 exports 1 stars 1.00 score 16 dependencies 2 dependents 56 scripts 1.9k downloads

Last updated 1 years agofrom:178333fcef. Checks:OK: 1 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 12 2024
R-4.5-linuxNOTESep 12 2024

Exports:best.fitcgamcgammconcconvdecrdecr.concdecr.convin.or.outincrincr.concincr.convOrdplotpersppredict.cgamss.concs.conc.concs.convs.conv.convs.decrs.decr.concs.decr.convs.decr.decrs.decr.incrs.incrs.incr.concs.incr.convs.incr.decrs.incr.incrshapesShapeSelecttreeumbrella

Dependencies:bootconeprojlatticelme4MASSMatrixminqanlmenloptrRcppRcppArmadilloRcppEigenrstudioapistatmodsvDialogssvGUI

Readme and manuals

Help Manual

Help pageTopics
Extract the Best Fit Returned by the ShapeSelect Routinebest.fit
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
To Include a Non-Parametrically Modelled Predictor in a SHAPESELECT Formulain.or.out
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
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
To Include a Non-Parametrically Modelled Predictor in a SHAPESELECT Formulashapes
Variable and Shape Selection via Genetic AlgorithmShapeSelect
Specify a Tree-Ordering in a CGAM Formulatree
Specify an Umbrella-Ordering in a CGAM Formulaumbrella