View source: R/dispersion_check.R
dispersion | R Documentation |
The measure is calculated as the average of the squared Pearson residuals
dispersion(observed, fitted, variance)
observed |
the observed values |
fitted |
the fitted values |
variance |
the variance of the fitted values |
Other statistics:
fitted,inla-method
,
get_observed()
,
residuals,inla-method
library(INLA) set.seed(20181202) model <- inla( poisson ~ 1, family = "poisson", data = data.frame( poisson = rpois(20, lambda = 10), base = 1 ), control.predictor = list(compute = TRUE) ) dispersion( observed = get_observed(model), fitted = fitted(model), variance = fitted(model) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.