Description Usage Arguments Details Value Author(s) See Also
An internal function, called by fosr()
, that fits additive models
with linear constraints via a call to gam
or
bam
in the mgcv package.
1 
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 crossvalidation. 
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.