Initialize the parameters for an additive model, which may contain both linear and nonlinear predictors. The nonlinear terms are modeled using low-rank thin plate splines.
init_bam_thin(y, X_lin, X_nonlin, B_all = NULL)a named list params containing
mu: vector of conditional means (fitted values)
sigma: the conditional standard deviation
coefficients: a named list of parameters that determine mu
n x 1 vector of data
n x pL matrix of predictors to be modelled as linear
n x pNL matrix of predictors to be modelled as nonlinear
optional pNL-dimensional list of n x L[j] dimensional
basis matrices for each nonlinear term j=1,...,pNL; if NULL, compute internally