fosr()
, that fits additive models with linear constraints via a call to gam
or bam
in the amc(y, Xmat, S, gam.method = "REML", C = NULL, lambda = NULL, ...)
ncol(Xmat)
.NULL
, the smoothing parameter(s) will be estimated.gam
object returned by gam
or bam
.Xmat
, derived from the gam()
fit.fosr
.gam.method
argument of the call to amc
.gam
, unless there are more than 10000 responses; in that case bam
is used.fosr