qresid_gamma <- function(model) {
disp <- summary(model)$dispersion
betas <- 1/(fitted(model) * disp)
gamma.cdf <- pgamma(model$y, rate = betas, shape = 1/disp)
res <- qnorm(gamma.cdf)
res
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.