
Generalized additive model by backfitting and local scoring
Source:R/esl_native_gam.R
morie_esl_gam.Rdg(mu) = alpha + sum_j f_j(X_j) with each f_j a cubic smoothing spline of penalty lambda_j, fitted by backfitting with re-centred components (ESL Alg. 9.1, eq 9.7); g = "logit" uses local scoring, weighted backfitting on the working response (ESL Alg. 9.2). smoother = "linear" fits straight lines.
Usage
morie_esl_gam(
X,
y,
g = NULL,
lambdas = 1,
smoother = c("spline", "linear"),
max_iter = 500,
tol = 1e-10,
max_outer = 100
)