Learn R Programming

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

BRugs (version 0.8-0)

R 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-0

License

GPL-2

Maintainer

Uwe Ligges

Last Published

July 24th, 2012

Functions in BRugs (0.8-0)

samplesDensity

Plot density estimate or histogram
getNumChains

Number of chains
samplesHistory

Trace of a variable
samplesGet

Get settings used for calculations
modelSetWD

Set working directory
buffer

Reading OpenBUGS buffer file
samplesAutoC

Plot autocorrelation function
bugsInits

Writing input for OpenBUGS
samplesBgr

Plot the Gelman-Rubin convergence statistic
modelIteration

Returns number of iterations
modelCheck

Checking the model file
bgrPoint

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

Writing input for OpenBUGS
infoNode

Node information
rats

ratsdata example
ranks

Calculation of ranks
modelSaveState

Save the model's current state
infoUpdaters

Information on MCMC updaters
modelGenInits

Generating initial values
modelPrecision

Setting precision for prec figures
plotHistory

Trace of a scalar variable
infoMemory

Show memory usage
help.WinBUGS

WinBUGS documentation
dimensions

Dimension of BUGS variables
samplesCorrel

Correlation
samplesSample

Stored values
samplesSet

Start recording
BRugsFit

BRugs' meta function
modelInits

Loading initial values
plotDensity

Plot density estimate or histogram of a scalar variable
loadOpenBUGS

Load OpenBUGS from given directory
modelUpdate

Updating the model
plotBgr

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

DIC
samplesSetting

Change settings used for calculations
plotAutoC

Plot autocorrelation function for a scalar variable
modelAdaptivePhase

Getting length of adaptive phase
summary

Summary of MCMC simulation
modelSetAP

Changing settings of updating algorithms
BRugs

Introduction to BRugs
samplesCoda

Writing files in CODA format
modelCompile

Compiling the model
modelNames

Get variable names in model
buildMCMC

Generating mcmc.list objects for package coda
samplesClear

Clear recorded values
samplesSize

Size of the stored sample
infoModules

Loaded modules
samplesMonitors

Names of monitored scalar variables
modelRN

State of Random Number Generator
modelFactory

Enable and disable factories to create updaters
getChain

Current chain to be initialized
samplesStats

Calculate summary statistics
modelData

Loading the data
setValues

Setting current values
write.datafile

Write data for OpenBUGS - intended for internal use only
writeModel

Creating an OpenBUGS model file