residfit {nmixgof} | R Documentation |
Plot residuals against fitted values
Description
Plots randomized-quantile residuals for binomial N-mixture models against fitted values.
Usage
residfit(umFit, type = "marginal", ...)
Arguments
umFit |
An object from a model fitted using pcount. |
type |
The type of randomized quantile residual to plot. One of 'marginal', 'site-sum' or 'observation'. |
... |
Plot arguments. |
Examples
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)
residfit(fmP, "marginal")
residfit(fmP, "site-sum")
residfit(fmP, "observation")
[Package nmixgof version 0.1.0 Index]