I encountered the beginner’s error:
RUNTIME ERROR:
Compilation error on line 17.
Unknown function: dunif
When I was updating some code to take a distribution rather than an assigned value, I forgot to update the relational operator from assignment to ‘distributed as’.
Thus, this:
Beta1 <- dunif(0, 1)
needed to be this:
Beta1 ~ dunif(0, 1)
Thus, JAGS thought that dunif was a function rather than a distribution.