We provide R demos which allow you to replicate all the analysis reported in the MLwiN MCMC Manual (PDF, 7.4 mb) using R2MLwiN with the package. The table of contents are:
To see an R script that replicates a chapter in the manual (for example, Chapter 03: Variance Components Models), type the following at the R command line:
file.show(system.file("demo", "Chapter03.R", package="R2MLwiN"))
To run the demo, please specify the MLwiN directory, for example,
mlwin = "C:/Program Files (x86)/MLwiN v2.26/"
and then type the following at the R command line:
demo(Chapter03)
Note that if WinBUGS14.exe or OpenBUGS.exe is not found under the default installation folder, the user will be asked to provide one. For example,
Please specify the path for the WinBUGS executable:
1: C:/Stat-JR/WinBUGS14/WinBUGS14.exe↵
2: ↵