View source: R/model_smimodel.R
| loss | R Documentation |
Calculates the value of the objective function (loss function) of the mixed integer program used to estimate a SMI model.
loss(Y, Yhat, alpha, lambda0, lambda2)
Y |
Column matrix of response. |
Yhat |
Predicted value of the response. |
alpha |
Vector of index coefficients. |
lambda0 |
Penalty parameter for L0 penalty. |
lambda2 |
Penalty parameter for L2 penalty. |
A numeric.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.