Skip to content

πŸ“Š 🌐 πŸ§‘β€πŸ« Website for masters-level independent readings course on Bayesian statistics with R and Stan, built with Quarto

License

Notifications You must be signed in to change notification settings

andrewheiss/bayess23.classes.andrewheiss.com

Repository files navigation

Bayesian Statistics Readings

Andrew Heiss
PMAP 8911 β€’ Summer 2023
Andrew Young School of Policy Studies β€’ Georgia State University


How to build the site

  1. Install RStudio version 2022.07.1 or later since it has a Quarto installation embedded in it. Otherwise, download and install Quarto separately.
  2. Open bayess23.Rproj to open an RStudio Project.
  3. If it’s not installed already, R should try to install the {renv} package when you open the RStudio Project for the first time. If you don’t see a message about package installation, install it yourself by running install.packages("renv") in the R console.
  4. Run renv::restore() in the R console to install all the required packages for this project.
  5. Run targets::tar_make() in the R console to build everything.
  6. πŸŽ‰ All done! πŸŽ‰ The complete website will be in a folder named _site/.

{targets} pipeline

We use the {targets} package to build this site and all its supporting files. The complete pipeline is defined in _targets.R and can be run in the R console with:

targets::tar_make()

The pipeline does a few major tasks:

  • Run long-running Bayesian scripts: Bayesian computation with MCMC sampling takes a long time. Instead of running our models in .qmd files that are re-run when rendering the website, we run them in separate .R files (located in R/) and show their results in their corresponding .qmd files.

  • Build Quarto website: This project is a Quarto website, which compiles and stitches together all the .qmd files in this project based on the settings in _quarto.yml. See the Quarto website documentation for more details.

The complete pipeline looks like this:

(This uses mermaid.js syntax and should display as a graph on GitHub. You can also view it by pasting the code into https://mermaid.live.)

graph LR
  subgraph Graph
    direction LR
    xea717cf4a37d25dd(["bayesian_triptych"]):::built --> x7aa56383a054e8ba(["site"]):::queued
    xf38d3f5e6365ad72(["workflow_graph"]):::queued --> x6e52cb0f1668cc22(["readme"]):::queued
  end

Licenses

Text and figures: All prose and images are licensed under Creative Commons (CC-BY-NC 4.0)

Code: All code is licensed under the MIT License.

About

πŸ“Š 🌐 πŸ§‘β€πŸ« Website for masters-level independent readings course on Bayesian statistics with R and Stan, built with Quarto

Topics

Resources

License

Stars

Watchers

Forks