Learn R Programming

⚠️There's a newer version (0.9-2.1) of this package.Take me there.

BRugs (version 0.8-6)

Interface to the 'OpenBUGS' MCMC Software

Description

Fully-interactive R interface to the 'OpenBUGS' software for Bayesian analysis using MCMC sampling. Runs natively and stably in 32-bit R under Windows. Versions running on Linux and on 64-bit R under Windows are in "beta" status and less efficient.

Copy Link

Version

Install

install.packages('BRugs')

Monthly Downloads

21

Version

0.8-6

License

GPL-2

Maintainer

Uwe Ligges

Last Published

December 16th, 2015

Functions in BRugs (0.8-6)

infoNode

Node information
modelIteration

Returns number of iterations
infoModules

Loaded modules
help.WinBUGS

WinBUGS documentation
modelAdaptivePhase

Getting length of adaptive phase
infoUpdaters

Information on MCMC updaters
bugsData

Writing input for OpenBUGS
buffer

Reading OpenBUGS buffer file
samplesStats

Calculate summary statistics
samplesCoda

Writing files in CODA format
infoMemory

Show memory usage
samplesSet

Start recording
modelInits

Loading initial values
samplesSize

Size of the stored sample
rats

ratsdata example
write.datafile

Write data for OpenBUGS - intended for internal use only
dic

DIC
buildMCMC

Generating mcmc.list objects for package coda
modelCheck

Checking the model file
dimensions

Dimension of BUGS variables
samplesHistory

Trace of a variable
plotDensity

Plot density estimate or histogram of a scalar variable
modelRN

State of Random Number Generator
samplesCorrel

Correlation
samplesClear

Clear recorded values
BRugsFit

BRugs' meta function
summary

Summary of MCMC simulation
modelUpdate

Updating the model
getChain

Current chain to be initialized
samplesAutoC

Plot autocorrelation function
samplesSample

Stored values
samplesGet

Get settings used for calculations
BRugs

Introduction to BRugs
plotHistory

Trace of a scalar variable
loadOpenBUGS

Load OpenBUGS from given directory
samplesBgr

Plot the Gelman-Rubin convergence statistic
modelFactory

Enable and disable factories to create updaters
samplesSetting

Change settings used for calculations
setValues

Setting current values
modelSetAP

Changing settings of updating algorithms
modelPrecision

Setting precision for prec figures
getNumChains

Number of chains
samplesMonitors

Names of monitored scalar variables
bgrPoint

Internal functions (to support plotting the Gelman-Rubin convergence statistic)
modelSetWD

Set working directory
modelSaveState

Save the model's current state
modelData

Loading the data
modelGenInits

Generating initial values
modelNames

Get variable names in model
plotAutoC

Plot autocorrelation function for a scalar variable
bugsInits

Writing input for OpenBUGS
modelCompile

Compiling the model
plotBgr

Plot the Gelman-Rubin convergence statistic for a scalar variable
ranks

Calculation of ranks
samplesDensity

Plot density estimate or histogram
writeModel

Creating an OpenBUGS model file