Description Usage Arguments Value
View source: R/fdaAuxFunctions.R
Objective function for the penalised GLM, to be optimised using stats::nlm().
1 | LossFunction_GLM(pars, y_vec, XBD_mat, penmat, lam, l1, lv)
|
pars |
Parameter vector ( |
y_vec |
Response vector. |
XBD_mat |
Functional predictor matrix after dimension reduction, plus an intercept if appropriate. |
penmat |
Penalty matrix. |
lam |
Penalty parameter. |
l1 |
First column of functional predictor, equal to |
lv |
Last column of functional predictor, equal to |
The penalised GLM objective function evaluated at pars
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.