First off, thanks for the package. If I can get it working, it'll be really nice to be able to run jags in the background and eventually use it for cross-validation. But currently, the output from results.jags() is not consistent (or correct) when combined with the method='bgparallel'...
I am using R (version 3.2.0) within RStudio (version 0.99.441), and runjags version 2.0.1.
Here is the gist of what I am doing (fitting a multi-species occupancy model) and the results I am getting:
'sigmaDetCoef' has morphed into 'muDetCoef'! And neither makes sense- the sigmaDetCoef's come from dunif(0, 10) distributions...
Let me know if I should post more information. I'm not entirely sure if it's a bug, or if I am using the functions incorrectly, or if it is a problem within the model.
Thank you,
Kristin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the message - it does indeed seem that there is a bug in the code that selects results using the read.monitor argument of results.jags. I will look into this ASAP.
In the meantime the following code should work around the bug (although it does mean that all of your parameters will have to be read in by results.jags):
This bug is fixed in version 2.0.2 which is now on CRAN. I have added several tests to make sure it works to my local build procedure, so hopefully you will now get the results you expected :)
Thanks again for reporting the issue.
Matt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
First off, thanks for the package. If I can get it working, it'll be really nice to be able to run jags in the background and eventually use it for cross-validation. But currently, the output from results.jags() is not consistent (or correct) when combined with the method='bgparallel'...
I am using R (version 3.2.0) within RStudio (version 0.99.441), and runjags version 2.0.1.
Here is the gist of what I am doing (fitting a multi-species occupancy model) and the results I am getting:
'sigmaDetCoef' has morphed into 'muDetCoef'! And neither makes sense- the sigmaDetCoef's come from dunif(0, 10) distributions...
Let me know if I should post more information. I'm not entirely sure if it's a bug, or if I am using the functions incorrectly, or if it is a problem within the model.
Thank you,
Kristin
Hi Kristin
Thanks for the message - it does indeed seem that there is a bug in the code that selects results using the read.monitor argument of results.jags. I will look into this ASAP.
In the meantime the following code should work around the bug (although it does mean that all of your parameters will have to be read in by results.jags):
Does this work as expected?
Thanks again.
Matt
Hi Kristin
This bug is fixed in version 2.0.2 which is now on CRAN. I have added several tests to make sure it works to my local build procedure, so hopefully you will now get the results you expected :)
Thanks again for reporting the issue.
Matt