Skip to content

Implementation of the "Regression and Other Stories" examples using StanJulia and Pluto.jl notebooks.

License

Notifications You must be signed in to change notification settings

RegressionAndOtherStoriesJulia/ROSStanPluto.jl

Repository files navigation

ROSStanPluto.jl

Lifecycle

Note

After many years I have decided to step away from my work with Stan and Julia. My plan is to be around until the end of 2024 for support if someone decides to step in and take over further development and maintenance work.

At the end of 2024 I'll archive the different packages and projects included in the Github organisations StanJulia, StatisticalRethingJulia and RegressionAndOtherStoriesJulia if no one is interested (and time-wise able!) to take on this work.

I have thoroughly enjoyed working on both Julia and Stan and see both projects mature during the last 15 or so years. And I will always be grateful for the many folks who have helped me on numerous occasions. Both the Julia and the Stan community are awesome to work with! Thanks a lot!

Purpose

This project will ultimately contain three sets of Pluto notebooks with Julia versions of selected examples explained in the books:

  1. "Data Analysis Using Regression and Multilevel/Hierarchical Models" (ARM)
  2. "Regression and Other Stories" (ROS).
  3. "Advanced Regression and Multilevel Models" (ARMM)

These notebooks are intended to be used in conjunction with above books. Each notebook contains a chapter. It is not the intention to cover each example in all books, just to get the reader going.

Both projects ROSStanPluto and SR2StanPluto are "work in progress projects", no guarantees all notebooks will always work without hickups. Please file an issue or a PR if you find a problem.

Prerequisites

To complete below steps and run the notebooks you need:

  1. A functioning cmdstan.
  2. A functioning Julia.
  3. A minimal Julia base environment containing Pkg and Pluto.

Setup the Pluto based ROSStanPluto notebooks

To (locally) use this project, do the following:

Download ROSStanPluto.jl from RegressionAndOtherStoriesJulia, e.g. to clone it to the ~/.julia/dev/ROSStanPluto directory:

$ cd ~/.julia/dev # This is just my preference!
$ git clone https://github.com/RegressionAndOtherStoriesJulia/ROSStanPluto.jl ROSStanPluto
$ cd ROSStanPluto/notebooks # Move to the downloaded notebooks directory
$ julia # Start the Julia REPL

Still in the Julia REPL, start a Pluto notebook server.

julia> using Pluto
julia> Pluto.run()

A Pluto page should open in a browser. See this page for a quick Pluto introduction.

Select the open a file entry box and select chapters. Select a chapter notebook and press open.

About

Implementation of the "Regression and Other Stories" examples using StanJulia and Pluto.jl notebooks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages