qres_tweedie | R Documentation |
Quantile residuals for a Tweedie GLMM fit with glmmTMB
qres_tweedie(obj, response)
qres_binomial(obj, response)
qres_gamma(obj, response)
qres_gaussian(obj, response)
plot_qres_qq(qr, nmax = 10000)
plot_qres_histogram(qr, bins = 50, nmax = 10000)
obj |
A model object from |
response |
The name of the response column in the data. E.g. |
qr |
A vector of quantile residuals from |
nmax |
The maximum number of residuals to plot. Very large values will take a while to plot. |
bins |
The number of histogram bins. |
## Not run:
m <- glmmTMB::glmmTMB(cpue ~ 1,
data = data.frame(cpue =
tweedie::rtweedie(1000, mu = 2, phi = 5, power = 1.5)),
family = glmmTMB::tweedie(link = "log"))
qr <- qres_tweedie(m, "cpue")
plot_qres_qq(qr)
plot_qres_histogram(qr)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.