{"id":26149143,"url":"https://github.com/liao961120/rethinking_code","last_synced_at":"2026-05-14T20:05:42.255Z","repository":{"id":117869271,"uuid":"335544180","full_name":"liao961120/rethinking_code","owner":"liao961120","description":"Using Kaggle Notebook to run code in Statistical Rethinking","archived":false,"fork":false,"pushed_at":"2021-06-20T05:16:18.000Z","size":194,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T05:32:12.414Z","etag":null,"topics":["bayesian","kaggle-notebook","r","rethinking","rstan","statistical-rethinking"],"latest_commit_sha":null,"homepage":"https://www.kaggle.com","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liao961120.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-03T07:36:47.000Z","updated_at":"2021-06-20T05:16:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8e6b261-e127-4d32-83cd-26650f93d48f","html_url":"https://github.com/liao961120/rethinking_code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liao961120/rethinking_code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liao961120%2Frethinking_code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liao961120%2Frethinking_code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liao961120%2Frethinking_code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liao961120%2Frethinking_code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liao961120","download_url":"https://codeload.github.com/liao961120/rethinking_code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liao961120%2Frethinking_code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33041239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bayesian","kaggle-notebook","r","rethinking","rstan","statistical-rethinking"],"created_at":"2025-03-11T05:28:50.581Z","updated_at":"2026-05-14T20:05:42.250Z","avatar_url":"https://github.com/liao961120.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code boxes in Statistical Rethinking\n\nThis repo contains the [code boxes](https://github.com/rmcelreath/rethinking/blob/master/book_code_boxes.txt) in the book [Statistical Rethinking](https://xcelab.net/rm/statistical-rethinking/), converted to `.ipynb`, making it convenient to load the code into Kaggle's [Notebook environment](https://www.kaggle.com/docs/notebooks) (it's free).\n\n\n## Why\n\nThe `rethinking` R package requires `rstan`, which is not easy to install and may cause problems on some computers. [Kaggle's R notebook has Rstan installed already](https://stackoverflow.com/questions/63116262/how-to-open-a-new-google-colab-notebook-for-r#answer-63116319), thus making the setup of the environment fast and easy (you only need to install `rethinking` from github, which can be done by just running the first code chunk in the notebooks).\n\n\n## Usage\n\nThe code from [`book_code_boxes.txt`](https://github.com/rmcelreath/rethinking/blob/master/book_code_boxes.txt) is split into several notebooks by chapter, which can be found in [`/notebooks`](./notebooks).\n\nYou can load a notebook in this repo into Kaggle's Notebook environment by clicking `File \u003e Load from URL` in the notebook interface (also, make sure to set the language to R on the right panel). The URL is in the form of:\n\n```\nhttps://raw.githubusercontent.com/liao961120/rethinking_code/main/notebooks/ch{dd}.ipynb\n```\n\nSo, for instance, if you want to load the [code in chapter 4](./notebooks/ch04.ipynb), the URL would be:\n\n```\nhttps://raw.githubusercontent.com/liao961120/rethinking_code/main/notebooks/ch04.ipynb\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliao961120%2Frethinking_code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliao961120%2Frethinking_code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliao961120%2Frethinking_code/lists"}