R/qresid_pois.R

Defines functions qresid_pois

qresid_pois <- function(model) {
  y <- model$y
  u <- runif(n = length(y))
  mu <- fitted(model)
  cdf.pois <- ppois(y-1, lambda = mu) + u * dpois(y, lambda = mu)
  res <- qnorm(cdf.pois)
  res
}

Try the glmxdiag package in your browser

Any scripts or data that you put into this service are public.

glmxdiag documentation built on Jan. 10, 2022, 9:07 a.m.