-
Notifications
You must be signed in to change notification settings - Fork 3
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
Is pD ever computed in the same way as BUGS, using R2jags? #19
Comments
Related to this, would you consider a PR to modify the naming of the |
I merged your fix. Can you provide short description on these: Argument names in code not in docs: |
Thank you! That's very helpful.
I *think* I have added the description of these in the .Rd file under /man, haven't I?
Il check more specifically later though. Thank you!
…---
Gianluca Baio
Professor of Statistics and Health Economics | Head of Department
Department of Statistical Science | University College London
1-19 Torrington Place, London, WC1E 6BT, UK
Twitter: @stats_ucl<https://twitter.com/stats_UCL> | Instagram: @stats_UCL<https://instagram.com/ucl.stats/>
Telephone: +44(0)20 7679 1248 (internal: 41248)
Website: http://www.homepages.ucl.ac.uk/~ucakgba
Blog: https://gianluca.statistica.it/blog/
Book a meeting with me: https://book.morgen.so/gianlucabaio/book-me
________________________________
From: Yu-Sung Su ***@***.***>
Sent: Sunday, June 23, 2024 2:17:55 PM
To: suyusung/R2jags ***@***.***>
Cc: Baio, Gianluca ***@***.***>; Author ***@***.***>
Subject: Re: [suyusung/R2jags] Is pD ever computed in the same way as BUGS, using R2jags? (Issue #19)
⚠ Caution: External sender
I merged your fix. Can you provide short description on these: Argument names in code not in docs:
pD n.iter.pd n.adapt?
—
Reply to this email directly, view it on GitHub<#19 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACCRVSKFSU2QJUVZFCRZ5H3ZI3DIHAVCNFSM6AAAAABI6P7NUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUHE4DKNZZGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Yes, I have checked and the new options are described in the man file jags.Rd. G |
Thanks for merging the PR --- this is very helpful! I may fiddle with the package a bit more, as I'm using it extensively to complement a book --- hope OK? |
Sure. Your contribution can lively update this package. |
I have made some changes to ensure the package to pass the R CMD check. Please let me know when you are done with the patch. I will upload the new package on to the CRAN. |
Perfect. So:
I think bottom line, I can either very quickly implement 1. so you can submit to CRAN and avoid the potential bug (which didn't impact the results all the time, in my experience, but occasionally it would very badly) or if you want all, give me a couple days and then I'll send another PR... Let me know what you think! |
I think I would prefer option 2 for now. |
[like] Baio, Gianluca reacted to your message:
…________________________________
From: Yu-Sung Su ***@***.***>
Sent: Wednesday, June 26, 2024 12:07:15 AM
To: suyusung/R2jags ***@***.***>
Cc: Baio, Gianluca ***@***.***>; Author ***@***.***>
Subject: Re: [suyusung/R2jags] Is pD ever computed in the same way as BUGS, using R2jags? (Issue #19)
⚠ Caution: External sender
I think I would prefer option 2 for now.
—
Reply to this email directly, view it on GitHub<#19 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACCRVSIGX43N3RENTKC4U43ZJIA3HAVCNFSM6AAAAABI6P7NUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJQGIZTKMBZHE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
So just to make sure, are you happy with the current patched version, or would you like the options argument too? |
Hi there,
This may be a silly question -- but I know in the
R2jags
code, theprint
method has a linewhich seems to indicate that, sometimes,
x$DICbyR
may beFALSE
and thereforepD
would be computed in the same way asBUGS
would. All the times I've usedJAGS
/R2jags
, though, I don't think this has ever happened andR2jags
/JAGS
, I think, always computepD
asvar(deviance)/2
.I know you can estimate the value that
BUGS
would calculate usingrjags::dic.samples()
, but I wanted to make sure that theifelse
statement was actually activated, at least in theory?Thanks!
Gianluca
The text was updated successfully, but these errors were encountered: