disp: Calculate the dispersion estimate from a GLM model 'disp'

View source: R/Index_functions.R

dispR Documentation

Calculate the dispersion estimate from a GLM model disp

Description

Calculate the dispersion estimate from a GLM model disp

Usage

disp(mod = NA)

Arguments

mod

Name of a fitted model of various types from which Pearson residuals and a residual degrees of freedom can be extracted from the model object

See Also

Other Model Evaluation: Index.Grid(), Index.Summary()

Examples

X <- seq(1, 100)
Y <- 100 + 0.2 * X + rnorm(1, mean = 0, sd = 5)
mod <- glm(Y ~ X)
disp(mod) # Dispersion parameter estimated using functio
sigma(mod)^2 # Dispersion parameter estimated using the calculated sigma
# paramter of the model object

ballengerj/FishyR documentation built on June 17, 2022, 10:33 p.m.