Skip to content

cgam

Constrained Generalized Additive Model

v1.32 · Mar 4, 2026 · GPL (>= 2)

Description

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.

Downloads

2.8K

Last 30 days

2505th

8.1K

Last 90 days

31.5K

Last year

Trend: +4% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (4)

depends

imports

suggests

Dependency Network

Dependencies Reverse dependencies coneproj splines2 svDialogs statmod lme4 Matrix ggplot2 dplyr zeallot rlang quadprog MASS csurvey cgaim insight parameters cgam

Version History

new 1.32 Mar 10, 2026
updated 1.32 ← 1.31 diff Mar 4, 2026
updated 1.31 ← 1.30 diff Feb 7, 2026
updated 1.30 ← 1.29 diff Jan 15, 2026
updated 1.29 ← 1.28 diff Aug 22, 2025
updated 1.28 ← 1.27 diff Jul 4, 2025
updated 1.27 ← 1.26 diff May 12, 2025
updated 1.26 ← 1.25 diff Apr 27, 2025
updated 1.25 ← 1.24 diff Apr 23, 2025
updated 1.24 ← 1.23 diff Apr 10, 2025
updated 1.23 ← 1.22 diff Feb 18, 2025
updated 1.22 ← 1.21 diff Feb 16, 2025
updated 1.21 ← 1.20 diff Aug 9, 2023
updated 1.20 ← 1.19 diff Nov 15, 2022
updated 1.19 ← 1.18 diff Oct 3, 2022
updated 1.18 ← 1.17 diff Jul 17, 2022
updated 1.17 ← 1.16 diff Dec 12, 2021
updated 1.16 ← 1.15 diff Sep 28, 2020
updated 1.15 ← 1.14 diff Oct 12, 2019
updated 1.14 ← 1.13 diff Apr 30, 2019