BUGS is an acronym for Bayesian inference Using Gibbs Sampling; BUGS is also a software package for doing this.

learn more… | top users | synonyms

2
votes
0answers
138 views

How to reload the WinBUGS computation results to bugs object again? [closed]

I have run a very long computation in WinBUGS (million iterations) using the R2WinBUGS package from within R: bugs.object <- bugs(...) but the R crashed. How ...
2
votes
2answers
156 views

Selection of priors for a BYM spatial regression model

I am using a BYM model in WinBugs to describe the distribution of a non-infectious disease. The model at present is a standard enough BYM model without much modification, (a Poisson-gamma hierarchical ...
11
votes
5answers
551 views

R only alternatives to BUGS

I am following a course on Bayesian statistics using BUGS and R. Now, I already know BUGS, it's great but I am not really fond of using a separate program rather than just R. I have read that there ...
5
votes
3answers
895 views

Bayesian two-factor ANOVA

I am interested in fitting a Bayesian Two Factor ANOVA in BUGS or by utilizing some R package. Unfortunately I am having a hard time finding resources on this topic. Any suggestions? Even an ...
0
votes
3answers
433 views

Multivariate random walks in BUGS

I want to jointly estimate a very simple MV-Normal two-dimensional AR[1] process, $[x_t,y_t]=[x_{t-1},y_{t-1}]+\text{[Bivariate Gaussian error]}$, in BUGS. But the syntax has been impossible to ...
4
votes
2answers
1k views

Debugging JAGS and BUGS

I'm working on a not-too-fancy Bayesian model in R and JAGS. The goal is to isolate coder errors in a content analysis task. Code and output are given below. The larger question is how to go about ...
5
votes
1answer
222 views

Modeling multinomial problems with unknown sample size in BUGS

I'm trying to estimate the design effect of a series of relatively small sample size surveys ($n\sim 70$) with multiple responses. Design effects roughly correspond to how much larger actual sample ...
3
votes
1answer
226 views

How to model logistic regression with continuous predictor in Bugs?

Is it possible to use a continuous predictor in Bugs? The simplest way of doing this would be turning the size variable in alligators example from discrete to continuous. Both Winbugs and JAGS ...
22
votes
4answers
967 views

OpenBugs vs. JAGS

I am about to try out a BUGS style environment for estimating Bayesian models. Are there any important advantages to consider in choosing between OpenBugs or JAGS? Is one likely to replace the other ...
2
votes
1answer
85 views

Can I insert an observation (evidence) to a Winbugs model?

Greetings, Is it possible to use evidence in a Winbug model? For example, a random variable in a model has been observed, and I'd like to update the other variables in the model, pretty much the same ...
2
votes
1answer
557 views

How can I represent Conditional Probability Table based Bayesian Networks in Winbugs? [closed]

Greetings, Winbugs seem to support either stochastic or deterministic relationship between variables. However, many Bayesian Networks represent relationships between variables using conditional ...
1
vote
1answer
664 views

JAGS: posterior predictive distribution

I am fitting a simple linear regression model with R & JAGS: ...
4
votes
1answer
553 views

Geostatistical analysis using spatial.exp in WinBugs

I have a logistic regression model in GeoBugs to estimate predictors of prevalence of a disease. Can anyone tell me if there is a simple way to determine the lower and upper bounds of phi for ...
5
votes
1answer
156 views

Getting started on BUGS, need help implementing a simple model

If I have a parameter with a prior $X\sim N(\mu,\sigma)$ and three data points, $x_1,x_2,x_3$, how can I calculate the posterior in R or BUGS? Here is an attempt at doing this in BUGS, that I have ...
17
votes
1answer
979 views

For which distributions are the parameterizations in BUGS and R different?

I have found some distributions for which BUGS and R have different parameterizations: Normal, log-Normal, and Weibull. For each of these, I gather that the second parameter used by R needs to be ...
3
votes
3answers
647 views

Using R2WinBUGS, how to extract information from each chain?

I am new to Gibbs Sampling, and have been using WinBUGS, but I find that it is not well-suited towards storing/presenting results, so I have been calling it from R using the R2WinBUGS package. The ...
1
vote
1answer
267 views

Modeling a gamma-mixture waiting model in BUGS

I'm analyzing a noisy time series where where the inter-event interval is known to follow a two-gamma mixture distribution. If there was a simple model that would generate that kind of thing, it ...

1 2