Coder Social home page Coder Social logo

afcarl / rstanbook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matsuurakentaro/rstanbook

0.0 1.0 0.0 6.51 MB

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

Home Page: http://www.kyoritsu-pub.co.jp/bookdetail/9784320112421

R 76.30% Stan 23.70%

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 7 SP1 (64bit)
R 3.3.1 3.3.1
Rtools Rtools34 Rtools34
Stan 2.11 2.14
rstan 2.11.1 2.14.2
ggplot 2.1.0 2.2.1
ggmcmc 1.1 1.1
GGally 1.1.0 1.3.0
ellipse 0.3.8 0.3.8
hexbin 1.27.1 1.27.1
ggtern 2.1.1 2.2.0
mvtnorm 1.0.5 1.0.5
bda 5.1.6 5.1.6
gtools 3.5.0 3.5.0
Nippon 0.6.3.1 0.6.3.1
ggrepel 0.5 0.6.5

rstanbook's People

Contributors

matsuurakentaro avatar

Watchers

 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.