Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small issues in integrated models v0.3.0 #8

Closed
doserjef opened this issue Apr 3, 2022 · 1 comment
Closed

Small issues in integrated models v0.3.0 #8

doserjef opened this issue Apr 3, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@doserjef
Copy link
Owner

doserjef commented Apr 3, 2022

Two small problems with the intPGOcc and spIntPGOcc functions in v0.3.0.

  1. If a data set used in the integrated model only has site-level covariates in the detection model and does not have an even detection history (i.e., not all sites for that data set have the same number of replicate surveys), then the model will not fit properly. If you convert the site-level covariates to a full site x replicate matrix with the same missing data pattern as the detection-nondetection data, the model will work properly.
  2. The summary function for a posterior predictive check performed on an integrated model will round the resulting Bayesian p-values to 0 or 1. To extract a Bayesian p-value from the resulting ppcOcc object (say its called object), you can run the following
# q iterates across the number of data sets in the integrated model
mean(object$fit.y.rep[[q]] > object$fit.y[[q]])

These problems are fixed on the development version, and will be updated on CRAN at the end of April 2022.

@doserjef doserjef added the bug Something isn't working label Apr 3, 2022
@doserjef
Copy link
Owner Author

v0.3.1 fixes this problem and is now on CRAN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant