Learn R Programming

⚠️There's a newer version (1.24) of this package.Take me there.

cgam (version 1.6)

Constrained Generalized Additive Model

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 need 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 wps routine implements a two-dimensional isotonic regression without additivity assumptions.

Copy Link

Version

Install

install.packages('cgam')

Monthly Downloads

2,704

Version

1.6

License

GPL (>= 2)

Maintainer

Xiyue Liao

Last Published

November 2nd, 2016

Functions in cgam (1.6)

dd

Specify a Doubly-Decreasing Shape-Restriction in a WPS Formula
cgam

Constrained Generalized Additive Model Fitting
di

Specify a Decreasing-Increasing Shape-Restriction in a WPS Formula
decr.conc

Specify a Decreasing and Concave Shape-Restriction in a CGAM Formula
conc

Specify a Concave Shape-Restriction in a CGAM Formula
conv

Specify a Convex Shape-Restriction in a CGAM Formula
ii

Specify a Doubly-Increasing Shape-Restriction in a WPS Formula
decr

Specify a Decreasing Shape-Restriction in a CGAM Formula
decr.conv

Specify a Decreasing and Convex Shape-Restriction in a CGAM Formula
best.fit

Extract the Best Fit Returned by the ShapeSelect Routine
incr

Specify an Increasing Shape-Restriction in a CGAM Formula
in.or.out

To Include a Non-Parametrically Modelled Predictor in a SHAPESELECT Formula
incr.conc

Specify an Increasing and Concave Shape-Restriction in a CGAM Formula
incr.conv

Specify an Increasing and Convex Shape-Restriction in a CGAM Formula
s.conv

Specify a Smooth and Convex Shape-Restriction in a CGAM Formula
plot.shapeselect

Plot Routine for a SHAPESELECT Fit
plasma

A Data Set for Cgam
s.conc

Specify a Smooth and Concave Shape-Restriction in a CGAM Formula
plotpersp

Create a 3D Plot for a CGAM or WPS Object
predict.cgam

Prediction Routine for a CGAM Fit
s.decr.conc

Specify a Smooth, Decreasing and Concave Shape-Restriction in a CGAM Formula
s.incr.conv

Specify an Smooth, Increasing and Convex Shape-Restriction in a CGAM Formula
tree

Specify a Tree-Ordering in a CGAM Formula
shapes

To Include a Non-Parametrically Modelled Predictor in a SHAPESELECT Formula
umbrella

Specify an Umbrella-Ordering in a CGAM Formula
s

Specify a Smooth Shape-Restriction in a CGAM Formula
s.incr

Specify a Smooth and Increasing Shape-Restriction in a CGAM Formula
s.decr

Specify a Smooth and Decreasing Shape-Restriction in a CGAM Formula
s.incr.conc

Specify a Smooth, Increasing and Concave Shape-Restriction in a CGAM Formula
s.decr.conv

Specify a Smooth, Decreasing and Convex Shape-Restriction in a CGAM Formula
cubic

A Data Set for Cgam
ShapeSelect

Variable and Shape Selection via Genetic Algorithm
wps

Warped-Plane Spline-Based Isotonic Regression