Code Monkey home page Code Monkey logo

lander-stan-class-2021's Introduction

lander-stan-class-2021

Install needed software

# install R packages
install.packages(c("dplyr", "lubridate", "ggplot2", "bayesplot", "posterior", "fs", "stringr", "remotes"))
remotes::install_github("stan-dev/cmdstanr")

# install cmdstan
# please post on discourse.mc-stan.org if you run into errors
cmdstanr::install_cmdstan(cores = 2)

# check if cmdstan installation works properly
# please post on discourse.mc-stan.org if you run into errors
cmdstanr::cmdstanr_example()

# optionally install rstan 
# we won't _need_ this but it has some extra features we can use if you have it installed
# if it fails to install don't worry about it
install.packages("rstan")

Interactive MCMC demo

We'll use this on day 2 or 3:

https://chi-feng.github.io/mcmc-demo/app.html

Tentative Agenda

Day 1 Morning

  • Intro Bayesian workflow and Stan
  • Intro to the running example we'll use throughout the class

Day 1 Afternoon

  • Write first Stan program

Day 2 Morning

  • Expand our Stan program and check for improved model fit
  • Start discussing hierarchical models if there's time

Day 2 Afternoon

  • Hierarchical models with varying intercepts
  • non-centered parameterization
  • How does Stan's MCMC algorithm work?

Day 3 Morning

  • Andrew Gelman guest appearance
  • Finish Day 2 content
  • Varying slopes model

Day 3 Afternoon

  • Time varying parameters
  • Forecasting

lander-stan-class-2021's People

Contributors

jgabry avatar rtrangucci avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.