Learn R Programming

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

BRugs (version 0.8-4)

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

License

GPL-2

Maintainer

Uwe Ligges

Last Published

May 31st, 2015

Functions in BRugs (0.8-4)

modelData

Loading the data
samplesStats

Calculate summary statistics
modelInits

Loading initial values
samplesSample

Stored values
plotAutoC

Plot autocorrelation function for a scalar variable
modelSetWD

Set working directory
modelRN

State of Random Number Generator
write.datafile

Write data for OpenBUGS - intended for internal use only
samplesGet

Get settings used for calculations
writeModel

Creating an OpenBUGS model file
samplesSize

Size of the stored sample
rats

ratsdata example
samplesSetting

Change settings used for calculations
modelSaveState

Save the model's current state
modelPrecision

Setting precision for prec figures
loadOpenBUGS

Load OpenBUGS from given directory
samplesCoda

Writing files in CODA format
BRugs

Introduction to BRugs
samplesBgr

Plot the Gelman-Rubin convergence statistic
summary

Summary of MCMC simulation
help.WinBUGS

WinBUGS documentation
modelCompile

Compiling the model
dic

DIC
modelAdaptivePhase

Getting length of adaptive phase
modelGenInits

Generating initial values
getNumChains

Number of chains
samplesDensity

Plot density estimate or histogram
samplesCorrel

Correlation
modelIteration

Returns number of iterations
bugsData

Writing input for OpenBUGS
plotHistory

Trace of a scalar variable
BRugsFit

BRugs' meta function
samplesMonitors

Names of monitored scalar variables
infoNode

Node information
buffer

Reading OpenBUGS buffer file
dimensions

Dimension of BUGS variables
samplesHistory

Trace of a variable
samplesSet

Start recording
bgrPoint

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

Calculation of ranks
modelCheck

Checking the model file
infoModules

Loaded modules
infoMemory

Show memory usage
setValues

Setting current values
modelFactory

Enable and disable factories to create updaters
bugsInits

Writing input for OpenBUGS
modelUpdate

Updating the model
buildMCMC

Generating mcmc.list objects for package coda
modelNames

Get variable names in model
getChain

Current chain to be initialized
infoUpdaters

Information on MCMC updaters
plotBgr

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

Changing settings of updating algorithms
samplesAutoC

Plot autocorrelation function
samplesClear

Clear recorded values
plotDensity

Plot density estimate or histogram of a scalar variable