owned this note
owned this note
Published
Linked with GitHub
---
tags: ResBaz2021
---
# Bayesian Analysis in R
## Tuesday, May 18th, 2021 10\:00-12\:00
[Back to Resbaz HackMD Directory](https://hackmd.io/@ResBaz21/directory)
In this workshop, we will cover the very basics of Bayesian Statistics, and go over an example of how to specify your first bayesian linear regression in R using JAGS!
## Getting Started
The tutoral is located on github at: https://github.com/Kah5/ResBaz_JAGS_tutorial.git
https://github.com/Kah5/ResBaz_JAGS_tutorial.git
(Preferred set up)
You can launch a virtual RStudio session by clicking on the "launch binder" button in the ReadMe file (Thanks to Jessica Guo!) & follow along on our code
OR, you can
- install JAGS itself http://mcmc-jags.sourceforge.net/
- have R/Rstudio installed
- have the "rjags", "coda", and "ggplot2" libraries installed
- clone or download this repository with this Rmd file here:
https://github.com/Kah5/ResBaz_JAGS_tutorial.git
---
## Introductions
Name, Affiliation, Title, Email, Social Media
- Your Name, University of Arizona, Your title, youremail@email.arizona.edu, your social media
- Kelly Heilman, University of Arizona, Postdoctoral Research Associate, Laboratory of Tree Ring Research, kellyheilman@email.arizona.edu, twitter: @kelheil
- Jessica Guo, University of Arizona, Scientific Programmer, College of Ag and Life Sci, jessicaguo@email.arizona.edu, @JessicaSGuo
- Mayur Shirude, Rajiv Gandhi Center for Biotechnology, INDIA, PhD student, Regenerative Biology, mbalkrishnas@rgcb.res.in, @MayurShirude3
- Rene Dario Herrera (they/them), University of Arizona Cancer Center, Data Analyst, renedherrera@email.arizona.edu, [twitter@reneherrera](https://twitter.com/reneherrera), [github@renedarioherrera](https://github.com/renedarioherrera), [linkedin.com@renedarioherrera/](https://www.linkedin.com/in/renedarioherrera/)
- Annalysa Lovos, University of Arizona, Ph.D. student in Psychology, aklovos@email.arizona.edu, interested in Reading Group
- Alison Luongo, UA Clinical Psychology & Neuropsychology PhD Student in Psychology Dpt - alisonluongo@email.arizona.edu
- Hannah Andrews, UA School of Sociology, PhD Candidate, hannahre@email.arizona.edu
- Luke Kosinski, Critical Path Institute, Postdoctoral Fellow, lkosinski@c-path.org
- Iris Rodden, University of Arizona, PhD Candidate, irisr@email.arizona.edu
- Meltem Odabas (PhD UArizona 2019, Sociology), Potdoc at Indiana University Bloomington. modabas@iu.edu. [Twitter@meltemodabas](https://twitter.com/meltemodabas), [github@meltemod](https://github.com/meltemod
- Mingli Liang, PhD Candidate in psychology at UofArizona, lmliang@email.arizona.edu, interested in reading group!
## Questions and Answers
In this section, you can post your questions and feel free to answer if you have it. Questions will be answered during or after the workshop.
1. Papers using Bayesian?
- Ogle K. Hierarchical Bayesian statistics: merging experimental and modeling approaches in ecology. Ecological Applications. 2009 Apr 1;19(3):577-81.
- I found this example from cognitive psychology on Google Scholar, so no promises! Zhan P, Jiao H, Man K, Wang L. Using JAGS for Bayesian cognitive diagnosis modeling: A tutorial. Journal of Educational and Behavioral Statistics. 2019 Aug;44(4):473-503.
- Cressie, N., Calder, C.A., Clark, J.S., Hoef, J.M.V., Wikle, C.K., 2009. Accounting for uncertainty in ecological analysis: the strengths and limitations of hierarchical statistical modeling. Ecological Applications 19, 553–570. https://doi.org/10.1890/07-0744.1
-
2. References for how to specify random effects (e.g. distributions, separate intercept)?
- Ogle K, Barber JJ. Ensuring identifiability in hierarchical mixed effects Bayesian models. Ecological Applications. 2020 Oct;30(7):e02159.
- Tutorial on random effects in jags
https://rushinglab.github.io/WILD6900/articles/random_effects.html
- Bayesian Hierarchical Models in Ecology by Steve Midway has some examples of random effects, etc--see chapter 6 https://bookdown.org/steve_midway/BHME/Ch1.html
---
:::info
**Session Feedback :mega:**
Use the link below to provide your feedback on the session:
[**Session Feedback Form**](https://forms.gle/TrnJpr9qRBEKdnVVA)
:::