Here is a list of worked out examples of how to use R inla. All the data set in this page are included in the R inla package.
Example name and description
| Detailed description
| Data set
| R code
| | Epil: repeated measure on Poisson counts | Example taken from Winbugs/Openbugs Examples vol I. For details see here
| Epil.txt | Epil.code | | Surg: binomial regression with random effects | Example taken from Winbugs/Openbugs Examples vol I. For details see here | Surg.txt | Surg.code
| | Seeds: random effects logistic regression | Example taken from Winbugs/Openbugs Examples vol I. For details see here | Seeds.txt | Seeds.code | | Salm : extra-Poisson variation in dose-response study | Example taken from Winbugs/Openbugs Examples vol I. For details see here | Salm.txt | Salm.code | | Tokyo: smoothing time series of binomial data | Tokyo
| Tokyo.txt | Tokyo.code | | Drivers: time series with seasonal component | Drivers | Drivers.txt | Drivers.code | | Bym: an example of disease mapping with Poisson data and covariates assumed to have a linear or smooth effect | Bym | Germany.txt germany.graph
| Bym.code | | Munich: semiparametric regression model with Gaussian data and additional spatial effect | Example 4.2.2 from "Gaussian Markov Random Fields: Theory and Applications" by H. Rue and L. Held
| Munich.txt munich.graph
| Munich.code | | Zambia: semiparametric regression on Gaussian data with additional spatial effect | Example taken from the BayesX manual, for details see BayesX | zambia.txt zambia.graph
| zambia.code | | Scotland: conditional autoregressive model (CAR) for disease mapping | Example taken from the OpenBUGS\GeoBUGS manual. For details see here | Scotland.txt Scotland.graph
| scotland.code | Stacks: Robust and Ridge regression
| The stacks example from the WinBugs examples Vol 1.
| stacks.dat | stacks.R |
|
|