get_glm_mean {catalytic} | R Documentation |
Compute Mean Based on GLM Family
Description
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.
Usage
get_glm_mean(family_string, X, coefs)
Arguments
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. |
Value
Numeric vector. The computed mean of the response variable based on the specified family.
[Package catalytic version 0.1.0 Index]