[R] Calculating dispersion in glm

Thomas Lumley tlumley at u.washington.edu
Fri Aug 23 00:29:38 CEST 2002


On Fri, 23 Aug 2002, David Mackie wrote:

> Hi all,
>
> How is dispersion calculated within the glm function in R ?
>

It isn't.

It's calculated within the summary.glm function (or supplied by the user).
as
 sum(object$weights * object$residuals^2)/df.r

which works out to be equal to the mean square of the Pearson residuals.

	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list