Learn R Programming

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

BRugs (version 0.9-0)

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.9-0

License

GPL-2

Maintainer

Uwe Ligges

Last Published

June 27th, 2017

Functions in BRugs (0.9-0)

bgrPoint

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

Reading OpenBUGS buffer file
BRugs

Introduction to BRugs
BRugsFit

BRugs' meta function
infoNode

Node information
infoUpdaters

Information on MCMC updaters
dimensions

Dimension of BUGS variables
getChain

Current chain to be initialized
getNumChains

Number of chains
help.WinBUGS

WinBUGS documentation
modelData

Loading the data
modelFactory

Enable and disable factories to create updaters
modelUpdate

Updating the model
plotAutoC

Plot autocorrelation function for a scalar variable
modelRN

State of Random Number Generator
modelAdaptivePhase

Getting length of adaptive phase
modelSetAP

Changing settings of updating algorithms
modelSetWD

Set working directory
bugsData

Writing input for OpenBUGS
bugsInits

Writing input for OpenBUGS
infoMemory

Show memory usage
infoModules

Loaded modules
modelPrecision

Setting precision for prec figures
modelSaveState

Save the model's current state
rats

ratsdata example
samplesAutoC

Plot autocorrelation function
modelIteration

Returns number of iterations
modelNames

Get variable names in model
plotBgr

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

Plot density estimate or histogram of a scalar variable
plotHistory

Trace of a scalar variable
ranks

Calculation of ranks
samplesSample

Stored values
samplesSet

Start recording
samplesCoda

Writing files in CODA format
samplesCorrel

Correlation
samplesStats

Calculate summary statistics
samplesSetting

Change settings used for calculations
samplesSize

Size of the stored sample
summary

Summary of MCMC simulation
loadOpenBUGS

Load OpenBUGS from given directory
samplesMonitors

Names of monitored scalar variables
writeModel

Creating an OpenBUGS model file
buildMCMC

Generating mcmc.list objects for package coda
dic

DIC
modelCheck

Checking the model file
samplesHistory

Trace of a variable
write.datafile

Write data for OpenBUGS - intended for internal use only
modelCompile

Compiling the model
modelGenInits

Generating initial values
modelInits

Loading initial values
samplesBgr

Plot the Gelman-Rubin convergence statistic
setValues

Setting current values
samplesClear

Clear recorded values
samplesDensity

Plot density estimate or histogram
samplesGet

Get settings used for calculations