View source: R/model_metrics.R
deviance_gaussian | R Documentation |
Deviance computations as used in mfp in stata
deviance_gaussian(rss, weights, n)
rss |
residual sum of squares. |
weights |
numeric vector of weights used in computation of |
n |
number of observations used to compute |
Note that this is not the usual formula of deviance used in R, but uses the formula found here https://www.stata.com/manuals/rfp.pdf.
It can be applied for normal error models, but should not be used for other kinds of glms.
A numeric value representing the deviance of a Gaussian model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.