fosr()
, that fits additive models with linear constraints via a call to the gam()
function in the mgcv
package.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()
.Xmat
, derived from the gam()
fit.fosr()
.gam.method
argument of the call to amc()
.fosr