validateInstallMultiBUGS: Compare MultiBUGS/R2MultiBUGS execution to results supplied...

Description Usage Arguments Details Value Author(s) References See Also

View source: R/validateInstallMultiBUGS.R

Description

A selected subset of the examples from the MultiBUGS manual is executed and compared to results supplied with the package to validate installation.

Usage

1
2
3
4
5
6
validateInstallMultiBUGS(test.models = c("Air", "Asia", "Beetles",
  "BiRats", "Camel", "Dugongs", "Dyes", "Equiv", "Eyes", "Line",
  "OtreesMVN", "Rats", "Stacks", "Surgical", "Surgicalrand"),
  n.workers = 2, report = "text", MultiBUGS.pgm = NULL,
  useWINE = FALSE, WINE = NULL, newWINE = TRUE, WINEPATH = NULL,
  ...)

Arguments

test.models

A character list of models to validate.

n.workers

The number of workers to use in the MCMC simulation.

report

How to report the result of the validation. If 'text' then the outcome is reported to the console. If 'appveyor' the result is reported to the appveyor command line API, and R will be quit after each test model.

MultiBUGS.pgm

See bugs.

useWINE

logical; attempt to use the Wine emulator to run MultiBUGS. Default is FALSE. If WINE is used, the arguments MultiBUGS.pgm and working.directory must be given in form of Linux paths rather than Windows paths (if not NULL).

WINE

Character, path to ‘wine’ binary file, it is tried hard (by a guess and the utilities which and locate) to get the information automatically if not given.

newWINE

Use new versions of Wine that have ‘winepath’ utility

WINEPATH

Character, path to ‘winepath’ binary file, it is tried hard (by a guess and the utilities which and locate) to get the information automatically if not given.

...

Other arguments passed through to bugs

Details

Operation system support:

If useWINE=TRUE is used, all paths (such as working.directory and model.file, must be given in native (Unix) style, but MultiBUGS.pgm can be given in Windows path style (e.g. “c:/Program Files/MultiBUGS/”) or native (Unix) style
(e.g. “/path/to/wine/folder/dosdevices/c:/Program Files/MultiBUGS/MultiBUGS321/MultiBUGS.exe”).

Value

No data returned. Prints match/no match result to console for each example.

Author(s)

Neal Thomas based on BRugs examples created by Chris Jackaon.

References

Gelman, A., Carlin, J.B., Stern, H.S., Rubin, D.B. (2003): Bayesian Data Analysis, 2nd edition, CRC Press.

Sturtz, S., Ligges, U., Gelman, A. (2005): R2WinBUGS: A Package for Running WinBUGS from R. Journal of Statistical Software 12(3), 1-16.

See Also

bugs


MultiBUGS/R2MultiBUGS documentation built on Aug. 14, 2019, 3:15 p.m.