View source: R/internal_functions.R
init_bam_orthog | R Documentation |
Initialize the parameters for an additive model, which may contain both linear and nonlinear predictors. The nonlinear terms are modeled using orthogonalized splines.
init_bam_orthog(y, X_lin, X_nonlin, B_all = NULL)
y |
|
X_lin |
|
X_nonlin |
|
B_all |
optional |
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
The parameters in coefficients
are:
beta_lin
: the p x 1
linear coefficients, including the linear terms from X_nonlin
f_j
: the n x pNL
matrix of fitted values for each nonlinear function
theta_j
: the pNL
-dimensional of nonlinear basis coefficients
sigma_beta
: p x 1
vector of linear regression coefficient standard deviations
sigma_theta_j
: pNL x 1
vector of nonlinear coefficient standard deviations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.