Learn R Programming

BRugs (version 0.9-2.1)

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 x86Linux and on 64-bit R under Windows are in "beta" status and less efficient.

Copy Link

Version

Install

install.packages('BRugs')

Monthly Downloads

231

Version

0.9-2.1

License

GPL-2

Maintainer

Uwe Ligges

Last Published

February 25th, 2024

Functions in BRugs (0.9-2.1)

modelCheck

Checking the model file
modelCompile

Compiling the model
infoMemory

Show memory usage
modelGenInits

Generating initial values
help.WinBUGS

WinBUGS documentation
getNumChains

Number of chains
infoNode

Node information
modelRN

State of Random Number Generator
infoModules

Loaded modules
modelIteration

Returns number of iterations
modelNames

Get variable names in model
modelPrecision

Setting precision for prec figures
modelSaveState

Save the model's current state
modelInits

Loading initial values
samplesBgr

Plot the Gelman-Rubin convergence statistic
infoUpdaters

Information on MCMC updaters
samplesClear

Clear recorded values
samplesHistory

Trace of a variable
ranks

Calculation of ranks
samplesGet

Get settings used for calculations
writeModel

Creating an OpenBUGS model file
plotHistory

Trace of a scalar variable
samplesDensity

Plot density estimate or histogram
modelSetWD

Set working directory
modelSetAP

Changing settings of updating algorithms
samplesMonitors

Names of monitored scalar variables
modelAdaptivePhase

Getting length of adaptive phase
setValues

Setting current values
samplesStats

Calculate summary statistics
rats

ratsdata example
samplesSet

Start recording
modelUpdate

Updating the model
plotAutoC

Plot autocorrelation function for a scalar variable
modelData

Loading the data
samplesSample

Stored values
modelFactory

Enable and disable factories to create updaters
samplesSetting

Change settings used for calculations
samplesAutoC

Plot autocorrelation function
plotBgr

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

Summary of MCMC simulation
samplesSize

Size of the stored sample
plotDensity

Plot density estimate or histogram of a scalar variable
write.datafile

Write data for OpenBUGS - intended for internal use only
samplesCoda

Writing files in CODA format
samplesCorrel

Correlation
BRugs

Introduction to BRugs
BRugsFit

BRugs' meta function
bugsData

Writing input for OpenBUGS
buildMCMC

Generating mcmc.list objects for package coda
bgrPoint

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

Dimension of BUGS variables
getChain

Current chain to be initialized
dic

DIC
bugsInits

Writing input for OpenBUGS
buffer

Reading OpenBUGS buffer file