Description Usage Arguments Value Examples
Computes three types of randomized quantile residuals for binomial N-mixture models.
1 | rqresiduals(umFit, type = "marginal")
|
umFit |
An object of class unmarkedFit from a model fitted using pcount. |
type |
The type of rq residuals to compute, one of 'marginal', 'site-sum' or 'observation'. |
A matrix (if type
is 'marginal' or 'site-sum') or vector (for ) con.
1 2 3 4 5 6 7 8 | library(unmarked)
umf = unmarkedFramePCount(y = shoveler$y, obsCovs = shoveler$obs, siteCovs = shoveler$site)
fmP = pcount(~scale(date) + scale(reedcover) ~ scale(log(water)) + scale(latitude),
data = umf, K = 80)
qqnorm(rqresiduals(fmP, "s"))
qqnorm(rqresiduals(fmP, "o"))
par(mfcol = c(3,4))
invisible(apply(rqresiduals(fmP, "m"), 2, qqnorm))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.