get_glm_custom_var | R Documentation |
This function calculates a custom variance for a Generalized Linear Model (GLM) based on the specified formula,
the model initialization object, and a scaling factor tau
. The custom variance is computed by adjusting
the residuals of the fitted model and returning a weighted sum of squared residuals.
get_glm_custom_var(formula, cat_init, tau)
formula |
A formula object specifying the GLM model to be fitted, such as |
cat_init |
A list object containing the initialization data for the model. Generated from |
tau |
A numeric value representing a scaling factor for down-weighting synthetic data |
A numeric value representing the custom variance for the GLM model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.