amc | R Documentation |
An internal function, called by fosr()
, that fits additive models
with linear constraints via a call to gam
or
bam
in the mgcv package.
amc(y, Xmat, S, gam.method = "REML", C = NULL, lambda = NULL, ...)
y |
response vector. |
Xmat |
design matrix. |
S |
list of penalty matrices. |
gam.method |
smoothing parameter selection method: "REML" for restricted maximum likelihood, "GCV.Cp" for generalized cross-validation. |
C |
matrix of linear constraints. Dimension should be number of
constraints times |
lambda |
smoothing parameter value. If |
... |
other arguments, passed to |
The additive model is fitted using gam
, unless there
are more than 10000 responses; in that case bam
is
used.
A list with the following elements:
gam |
the |
coefficients |
coefficients with respect to design matrix |
Vp , GinvXt |
outputs used by
|
method |
the |
Philip Reiss phil.reiss@nyumc.org
fosr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.