init_bam_orthog {countSTAR} | R Documentation |
Initialize the parameters for an additive model
Description
Initialize the parameters for an additive model, which may contain both linear and nonlinear predictors. The nonlinear terms are modeled using orthogonalized splines.
Usage
init_bam_orthog(y, X_lin, X_nonlin, B_all = NULL)
Arguments
y |
|
X_lin |
|
X_nonlin |
|
B_all |
optional |
Value
a named list params
containing
-
mu
: vector of conditional means (fitted values) -
sigma
: the conditional standard deviation -
coefficients
: a named list of parameters that determinemu
Note
The parameters in coefficients
are:
-
beta_lin
: thep x 1
linear coefficients, including the linear terms fromX_nonlin
-
f_j
: then x pNL
matrix of fitted values for each nonlinear function -
theta_j
: thepNL
-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