get_glm_lambda | R Documentation |
This function calculates a lambda value based on the selected discrepancy method for a generalized linear model (GLM). The discrepancy method determines the type of error or deviance used in the calculation.
get_glm_lambda(
discrepancy_method = c("mean_square_error", "mean_classification_error",
"logistic_deviance"),
X,
coefs
)
discrepancy_method |
Character. A string specifying the type of discrepancy method
to use. Options are |
X |
Matrix. The design matrix (predictors) for the GLM. |
coefs |
Numeric vector. The coefficients for the GLM. |
Numeric. The computed lambda value based on the selected discrepancy method.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.