accessing pWAIC values

17 views
Skip to first unread message

Dylan Hubl

unread,
Jul 28, 2026, 6:26:13 PM (5 days ago) Jul 28
to nimble-users
Hi,

I am running a multispecies occupancy model and am picking up a warning that "There are 1 individual pWAIC values that are greater than 0.4...."

Trying to figure out if this is an issue that should prevent me from using WAIC as a method of model selection has been difficult. Namely, I would like to see what value is causing the warning but can't seem to figure out how to do that. 

I have searched back through old conversations in this group and found one (https://groups.google.com/g/nimble-users/c/a5ZGHVhQL34) in which it was recommended to download a new version of NIMBLE which would make it possible to view the nodes and their pWAIC values. But there was no information on what function to call to make that happen. Is it possible to use this if my code uses the one-line invocation of MCMC (e.g., nimbleMCMC())? 

Thanks,
Dylan

Chris Paciorek

unread,
Jul 29, 2026, 10:41:52 AM (4 days ago) Jul 29
to Dylan Hubl, nimble-users
hi Dylan,

In the conversation you found, I gave a pointer to a branch one could install NIMBLE from so that the nodes with high pWAIC are reported. It looks like that branch was based on nimble version 1.3.0. 
To update things, I've set up a new branch based on version 1.4.2 that you can install from GitHub. The branch is `report-waic-nodes-1.4.2`.

You can install from that branch like this:

```
remotes::install_github("nimble-dev/nimble", ref = "report-waic-nodes-1.4.2", subdir = "packages/nimble")
```

If you then rerun your MCMC you should see some additional output that hopefully gives you what you need (but is likely not be formatted all that cleanly).

-Chris




--
You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/nimble-users/0824ed1b-8e60-4460-81d5-9258730033bfn%40googlegroups.com.

Dylan Hubl

unread,
Jul 31, 2026, 5:11:49 PM (2 days ago) Jul 31
to paci...@stat.berkeley.edu, nimble-users
Hi Chris,

Thank you for the updated download. Really helpful. Is there anyway to see what the pWAIC value actually is for the problem node? Knowing how much larger than 0.4 the value is could be helpful.

Thanks,
Dylan

Chris Paciorek

unread,
Jul 31, 2026, 8:20:12 PM (2 days ago) Jul 31
to Dylan Hubl, nimble-users
Yes, good point. I should have added that.

I just added it to the same branch, so please reinstall and try again. 

I'm about to be out of town for a bit, so if you need to make other tweaks, such as formatting, you may be able to modify the code in MCMC_WAIC.R in the R folder of that branch and then rebuild and reinstall the package yourself.
Or I could take a look when I am back.

-chris
Reply all
Reply to author
Forward
0 new messages