R script with NIMBLE (examples)
Installation
Installation
Install NIMBLE
Install R and Rstudio
Visit the web page of https://r-nimble.org/ and see Documentation
Install Rtools (Windows users) or Xcode (Mac users) . See Chapter 4 of Manual (https://r-nimble.org/html_manual/cha-welcome-nimble.html )
Install packages: igraph, coda, R6
Install package: nimble
Reference
Jim Albert (2009) Bayesian Computation with R (2nd edition). Springer
Normal distribution
Normal distribution
Binomial distribution
Binomial distribution
Poisson distribution (Section 3.3)
Poisson distribution (Section 3.3)
Multinomial distribution (Section 4.3)
Multinomial distribution (Section 4.3)
Grouped Data (Section 6.7-6.8)
Grouped Data (Section 6.7-6.8)
Cauchy Distribution (Section 6.9)
Cauchy Distribution (Section 6.9)
Heart Transplant Data (Section 6.10)
Heart Transplant Data (Section 6.10)
Hierarchical models
Hierarchical models
Regression example
Regression example
Various examples
Various examples