Hierarchical Bayesian modeling with applications for spatial environmental data science (1-day workshop)
May 6, 9am - 4pm (Pacific)
Virtual (register with UCLA Institute for Digital Research & Education here)
09:00 AM – 09:05 AM - Welcome and Introduction
09:05 AM – 12:00 PM - Intro to hierarchical Bayesian modeling using Stan (Instructor: Youngflesh)
12:00 PM – 01: 00 PM - Lunch Break
01:00 PM – 04:00 PM - Hierarchical Bayesian modeling for spatial data science (Instructor: Banerjee)
Parts of this workshop will be interactive. That is, you will fit Bayesian models on your own computers. To take advantage of these activities, please have the following installed on your computer before the start of the workshop:
- RStudio
- R
- For the MORNING SESSION: The
rstan
,tidyverse
, andMCMCvis
packages- Install R packages with:
install.packages('rstan', 'tidyverse', 'MCMCvis')
- Detailed instructions for installing the
rstan
package can be found here - The Stan forums are a useful resource to help troubleshoot package installation issues
- Install R packages with:
- For the AFTERNOON SESSION: The
maps
,spdep
,maptools
,classInt
,RColorBrewer
,MBA
,fields
,geoR
,R2OpenBUGS
,spatialreg
,raster
,leaflet
, andsp
packages- Please install OpenBUGS before installing the
R2OpenBUGS
package from here. Instructions for installation of OpenBUGS on Mac can be found here. - Install R packages with:
install.packages('maps', 'spdep', 'maptools', 'classInt', 'RColorBrewer', 'MBA', 'fields', 'geoR', 'R2OpenBUGS', 'spatialreg', 'raster', 'leaflet', 'sp')
- Please install OpenBUGS before installing the
Code for the morning session can be found at Scripts/morning_session/
:
1-pdf.R
- plot normal pdf2-globe.R
- grid approximation - globe model3-bird-simulation.R
- simulate bird data for linear regression4-fit-linear-bird-model.R
- simulate data then fit/assess linear regression4-linear-bird-model.stan
- Stan file (bird weight ~ bird food)5-var-int-simulation.R
- simulate data for varying intercepts regression6-fit-var-int-bird-model.R
- simulate data then fit/assess varying intercepts linear regression6-var-int-bird-model.stan
- Stan file for varying intercepts model
Code and data for the afternoon session can be found at Scripts/afternoon_session/
Slides for the morning session can be found at Presentations/morning_session/
Slides for the afternoon session can be found at Presentations/afternoon_session/
A recording of the workshop in its entirity can be found on YouTube here