Learn R Programming

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

BRugs (version 0.8-1)

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

License

GPL-2

Maintainer

Uwe Ligges

Last Published

May 27th, 2013

Functions in BRugs (0.8-1)

modelGenInits

Generating initial values
buffer

Reading OpenBUGS buffer file
dimensions

Dimension of BUGS variables
infoModules

Loaded modules
BRugs

Introduction to BRugs
infoNode

Node information
bugsData

Writing input for OpenBUGS
buildMCMC

Generating mcmc.list objects for package coda
modelCheck

Checking the model file
modelNames

Get variable names in model
getNumChains

Number of chains
help.WinBUGS

WinBUGS documentation
modelCompile

Compiling the model
modelSetWD

Set working directory
write.datafile

Write data for OpenBUGS - intended for internal use only
infoMemory

Show memory usage
modelRN

State of Random Number Generator
samplesSample

Stored values
modelIteration

Returns number of iterations
dic

DIC
BRugsFit

BRugs' meta function
plotDensity

Plot density estimate or histogram of a scalar variable
modelFactory

Enable and disable factories to create updaters
samplesCoda

Writing files in CODA format
bugsInits

Writing input for OpenBUGS
getChain

Current chain to be initialized
modelSaveState

Save the model's current state
summary

Summary of MCMC simulation
samplesStats

Calculate summary statistics
ranks

Calculation of ranks
modelAdaptivePhase

Getting length of adaptive phase
loadOpenBUGS

Load OpenBUGS from given directory
samplesGet

Get settings used for calculations
modelData

Loading the data
modelSetAP

Changing settings of updating algorithms
modelUpdate

Updating the model
samplesClear

Clear recorded values
modelPrecision

Setting precision for prec figures
plotBgr

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

Change settings used for calculations
samplesAutoC

Plot autocorrelation function
samplesCorrel

Correlation
samplesDensity

Plot density estimate or histogram
samplesSet

Start recording
rats

ratsdata example
modelInits

Loading initial values
setValues

Setting current values
plotAutoC

Plot autocorrelation function for a scalar variable
plotHistory

Trace of a scalar variable
bgrPoint

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

Plot the Gelman-Rubin convergence statistic
writeModel

Creating an OpenBUGS model file
samplesSize

Size of the stored sample
samplesMonitors

Names of monitored scalar variables
samplesHistory

Trace of a variable
infoUpdaters

Information on MCMC updaters