Skip to content

cgam

1.32

Constrained Generalized Additive Model

4packages depend
32.5Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Xiyue LiaoFirst published 2014-03-0533 releasesCRAN page ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 7.9 min · r-devel-linux-x86_64-fedora-clang
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
14
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
86%
Documented parameters
92%
Return-value docs
100%
References docs
82%

Downloads

32.5K
CRAN downloads in the past year
Rank #2,304 · ~89/day · ~2.7K/mo
Daily download trend is not available in this view yet.
2.8K30 days
10K90 days
32.5K1 year
Compare downloads with other packages →
Also on391 r2u17 autocran

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)
Depends (2)
R >= 4.3.0coneproj
LinkingTo (0)
none
Suggests (6)
graphicsgrDevicesutilsroxygen2patchworkglmnet
Enhances (0)
none
Reverse dependencies
4direct
1indirect

Code & Tests

Datasets

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Author · added in 1.18
Listed in earlier versions (1)
no longer listed · 1.0 to 1.17
Package Timeline

33 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.32Latest
    2026-03-05 · current release · diff ↗
  • 1.31
    2026-02-08 · diff ↗
  • 1.30
    2026-01-16 · diff ↗
  • 1.29
    2025-08-23 · diff ↗
  • 1.28
    2025-07-05 · diff ↗
  • 1.27
    2025-05-13 · diff ↗
  • 1.26
    2025-04-28 · diff ↗
  • 1.25
    2025-04-24 · diff ↗
  • 1.24
    2025-04-11 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.23
    2025-02-19 · diff ↗
  • 1.22
    2025-02-17 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.21
    2023-08-10 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
Show 31 earlier events
  • 1.20
    2022-11-16 · diff ↗
  • 1.19
    2022-10-04 · diff ↗
  • 1.18
    2022-07-18 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.17
    2021-12-13 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.16
    2020-09-29 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.15
    2019-10-13 · diff ↗
  • 1.14
    2019-05-01 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.13
    2019-04-23 · diff ↗
  • 1.12
    2018-11-08 · diff ↗
  • 1.11
    2018-06-28 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 1.10
    2018-04-11 · diff ↗
  • 1.9
    2018-02-15 · diff ↗
  • 1.8
    2017-10-02 · diff ↗
  • 1.7
    2017-07-03 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 1.6
    2016-11-02 · diff ↗
  • 1.5
    2016-06-05 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 1.4
    2016-04-15 · diff ↗
  • 1.3
    2015-10-01 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 1.2
    2014-09-10 · diff ↗
  • 1.1
    2014-04-17 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 1.0
    2014-03-05
  • R
    R 3.0.0 released · 2013-04-03

Package metadata

First published
2014-03-05
Total releases
33 / 12 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 4.3.0
Bundled data
116 KB / 4 files
Download size
352 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →