| mlwin2bugs | R Documentation |
This function allows R to call WinBUGS using the output files from MLwiN.
This function uses functionalities in the R2WinBUGS-package
package.
mlwin2bugs(
datafile,
initfiles,
modelfile,
parameters = NULL,
n.chains = 1,
n.iter = 5500,
n.burnin = 500,
n.thin = 1,
debug = FALSE,
bugs.directory = NULL,
bugsWorkingDir = tempdir(),
OpenBugs = FALSE,
cleanBugsWorkingDir = FALSE,
seed = NULL
)
datafile |
A file name where the BUGS data file will be saved in .txt format. |
initfiles |
A list of file names where the BUGS initial values will be saved in .txt format. |
modelfile |
A file name where the BUGS model will be saved in .txt format. |
parameters |
A vector of strings specifying coefficients to be monitored. |
n.chains |
The number of chains to be monitored. |
n.iter |
The number of iterations for each chain |
n.burnin |
The length of burn-in for each chain |
n.thin |
Thinning rate |
debug |
A logical value indicating whether ( |
bugs.directory |
The full path of location where WinBUGS is installed
(ignored if OpenBugs is |
bugsWorkingDir |
A directory where all the intermediate files are to be
stored; defaults to |
OpenBugs |
If |
cleanBugsWorkingDir |
If |
seed |
An integer specifying the random seed. |
Returns an mcmc object.
Zhang, Z., Charlton, C.M.J., Parker, R.M.A., Leckie, G., and Browne, W.J. (2016) Centre for Multilevel Modelling, University of Bristol.
runMLwiN,bugs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.