get_glm_mean | R Documentation |
This function calculates the mean of the response variable for a generalized linear model (GLM) based on the specified family. The calculation depends on whether the family is binomial or gaussian.
get_glm_mean(family_string, X, coefs)
family_string |
Character. The GLM family to use. Options are |
X |
Matrix. The design matrix (predictors) for the GLM. |
coefs |
Numeric vector. The coefficients for the GLM. |
Numeric vector. The computed mean of the response variable based on the specified family.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.