Learn R Programming

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

BRugs (version 0.8-5)

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-5

License

GPL-2

Maintainer

Uwe Ligges

Last Published

July 29th, 2015

Functions in BRugs (0.8-5)

buffer

Reading OpenBUGS buffer file
infoModules

Loaded modules
modelGenInits

Generating initial values
modelSetWD

Set working directory
plotHistory

Trace of a scalar variable
buildMCMC

Generating mcmc.list objects for package coda
modelRN

State of Random Number Generator
modelSaveState

Save the model's current state
ranks

Calculation of ranks
plotDensity

Plot density estimate or histogram of a scalar variable
loadOpenBUGS

Load OpenBUGS from given directory
modelNames

Get variable names in model
modelCheck

Checking the model file
bugsInits

Writing input for OpenBUGS
infoNode

Node information
infoMemory

Show memory usage
samplesStats

Calculate summary statistics
bgrPoint

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

Plot density estimate or histogram
samplesSetting

Change settings used for calculations
modelCompile

Compiling the model
BRugsFit

BRugs' meta function
dimensions

Dimension of BUGS variables
modelFactory

Enable and disable factories to create updaters
plotBgr

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

Setting current values
getChain

Current chain to be initialized
samplesClear

Clear recorded values
bugsData

Writing input for OpenBUGS
rats

ratsdata example
BRugs

Introduction to BRugs
modelPrecision

Setting precision for prec figures
infoUpdaters

Information on MCMC updaters
modelData

Loading the data
modelIteration

Returns number of iterations
samplesBgr

Plot the Gelman-Rubin convergence statistic
modelUpdate

Updating the model
modelAdaptivePhase

Getting length of adaptive phase
modelInits

Loading initial values
samplesMonitors

Names of monitored scalar variables
samplesHistory

Trace of a variable
modelSetAP

Changing settings of updating algorithms
samplesCoda

Writing files in CODA format
writeModel

Creating an OpenBUGS model file
plotAutoC

Plot autocorrelation function for a scalar variable
samplesSample

Stored values
write.datafile

Write data for OpenBUGS - intended for internal use only
samplesGet

Get settings used for calculations
getNumChains

Number of chains
samplesAutoC

Plot autocorrelation function
samplesCorrel

Correlation
help.WinBUGS

WinBUGS documentation
summary

Summary of MCMC simulation
dic

DIC
samplesSize

Size of the stored sample
samplesSet

Start recording