Learn R Programming

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

BRugs (version 0.7-5)

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

License

GPL-2

Maintainer

Uwe Ligges

Last Published

January 6th, 2012

Functions in BRugs (0.7-5)

modelInits

Loading initial values
modelAdaptivePhase

Getting length of adaptive phase
modelSetAP

Changing settings of updating algorithms
buildMCMC

Generating mcmc.list objects for package coda
bugsData

Writing input for OpenBUGS
plotBgr

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

Information on MCMC updaters
modelGenInits

Generating initial values
modelData

Loading the data
samplesHistory

Trace of a variable
infoModules

Loaded modules
loadOpenBUGS

Load OpenBUGS from given directory
BRugsFit

BRugs' meta function
ranks

Calculation of ranks
samplesSample

Stored values
modelNames

Get variable names in model
modelRN

State of Random Number Generator
modelSetWD

Set working directory
samplesStats

Calculate summary statistics
samplesCorrel

Correlation
help.WinBUGS

WinBUGS documentation
samplesCoda

Writing files in CODA format
writeModel

Creating an OpenBUGS model file
dic

DIC
bugsInits

Writing input for OpenBUGS
samplesSetting

Change settings used for calculations
modelFactory

Enable and disable factories to create updaters
samplesGet

Get settings used for calculations
modelCheck

Checking the model file
plotHistory

Trace of a scalar variable
samplesAutoC

Plot autocorrelation function
samplesBgr

Plot the Gelman-Rubin convergence statistic
modelUpdate

Updating the model
samplesMonitors

Names of monitored scalar variables
modelCompile

Compiling the model
infoNode

Node information
plotDensity

Plot density estimate or histogram of a scalar variable
buffer

Reading OpenBUGS buffer file
samplesClear

Clear recorded values
summary

Summary of MCMC simulation
getNumChains

Number of chains
samplesSize

Size of the stored sample
samplesDensity

Plot density estimate or histogram
setValues

Setting current values
infoMemory

Show memory usage
plotAutoC

Plot autocorrelation function for a scalar variable
bgrPoint

Internal functions (to support plotting the Gelman-Rubin convergence statistic)
write.datafile

Write data for OpenBUGS - intended for internal use only
BRugs

Introduction to BRugs
modelIteration

Returns number of iterations
dimensions

Dimension of BUGS variables
modelSaveState

Save the model's current state
getChain

Current chain to be initialized
modelPrecision

Setting precision for prec figures
rats

ratsdata example
samplesSet

Start recording