Giter VIP home page Giter VIP logo

rstanbook's Introduction

StanとRでベイズ統計モデリング サポートページ

概要

このリポジトリではデータファイル, Stanコード, 実行するRコード, 図を描くRコード, 画像ファイルを公開しています.

本書では基本的に以下の3つの番号を一致させています.

  • モデル式X-Y
  • Stanコード(modelX-Y.stan
  • 実行するRコード(run-modelX-Y.R

この他に, 図を描くコードfigX-Y.Rがあります. また各章のディレクトリの構成は以下になっています.

  • input:データが格納されています.
  • model:モデルファイル(Stanコード)が格納されています.
  • output:作成した図が含まれています.
  • exercise:練習問題の解答例です.

実行方法

各章のディレクトリに移動してから実行することを想定しています. 例えば4章のrun-model4-5.Rを実行する場合にはRを起動後に以下のようにします.

setwd('RStanBook/chap04/')
source('run-model4-5.R')

練習問題の解答例を実行するには, さらにexerciseディレクトリに移動してから実行することを想定しています.

setwd('RStanBook/chap04/exercise/')
source('ex1.R')

StanやRStanのバージョンアップに伴う補足

こちら

正誤表

こちら

ソースコードの実行環境

主なソフトやパッケージ名 執筆時点 サポートページ内の現状
OS Windows 7 SP1 (64bit) Windows 10 (64bit)
R 3.3.1 4.1.2
Rtools Rtools34 Rtools40v2
rstan 2.11.1 2.21.3
ggplot 2.1.0 3.3.5
ggmcmc 1.1 1.5.1.1
GGally 1.1.0 2.1.2
patchwork - 1.1.1
ellipse 0.3.8 0.4.2
hexbin 1.27.1 1.28.2
ggtern 2.1.1 3.3.5
ggrepel 0.5 0.9.1
mvtnorm 1.0.5 1.1-3
gtools 3.5.0 3.9.2
NipponMap - 0.2

rstanbook's People

Contributors

matsuurakentaro avatar motok 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.