ianfiske / unmarked

R package for hierarchical models in ecological research
15 stars 33 forks source link

Extracting residuals #19

Closed bzocc closed 14 years ago

bzocc commented 14 years ago

Would anyone have any recommendations for extracting residuals for an occ object? Using residuals (x) produces residuals for every detection event, but I am interested in extracting residuals for only the occupancy process. The entire model fits several covariates for detection and occupancy, but I would like to plot the residuals for the model having a single residual for each site. Is this possible? Am I thinking about this incorrectly? Thanks!

ianfiske commented 14 years ago

I'm not really sure off-hand of the correct way to do this since you don't observe a site-level occurrence. A residual is observed minus fitted, so what would you use for observed? Maybe the empirical Bayes predictor? You might also be fine just aggregating your detection-level residuals within each site -- maybe the mean?

ianfiske commented 14 years ago

no update on this in a while -- i'm closing.