For use with JAGS from within the R environment. Provides a nicer model output than comes with the default JAGS output.
Variable arguments based on model
Load jhbayes.r prior to running JAGS model. MyBUGSOutput and uNames functions will then be in memory. From Alain Zuur support files on highstat.com.
jhbayes.r must be loaded into memory in order to be effectve. Use the source function or paste into R editor. Code is 23 lines in length.
Hilbe, Joseph M. (2015), Practical Guide to Logistic Regression, Chapman & Hall/CRC, page 137-143.
Zuur, A.F., Hilbe, J.M., and Ieno, E.N. (2013), A Beginner's Guide to GLM and GLMM with R: a frequentist and Bayesian perspective for ecologists, Highlands.
1 2 3 4 5 6 7
#library(R2jags) #library(LOGIT) #data(medpar) #JAGS code with J0 as MCMC algorithm # out <- J0$BUGS$output # myB <- MyBUGSOutput(out, c(uNames("beta", K), "LogL", "AIC", "BIC")) # round(myB, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.