Questions tagged [winbugs14]

Questions about BUGS language for defining Bayesian models that can be run by the WinBUGS software package. It is advised to supplement your question with a reproducible BUGS example (https://stackoverflow.com/q/5963269); for statistical questions please use crossvalidated.com.

WinBUGS

WinBUGS is a software program for Bayesian analysis of complex statistical models using Markov chain Monte Carlo (MCMC) methods. WinBUGS implements the BUGS language for defining Bayesian models. WinBUGS was created by Dave Lunn, Andrew Thomas, Nicky Best, and David Spiegelhalter in 1996. In 2007 the last stable version (1.4.3) was released. Thereafter development focused on the OpenBUGS project.

Official WinBUGS Documentation

Other Documentation

41 questions
2
votes
1 answer

R2WinBUGS error - Trap - incompatible copy

I'm trying to call winBUGS from R to estimate a logistic regression. I'm using the following code: # Directorio de trabajo setwd("~/3 Diplomado/7 Bayesiana/8t1") # paquete para hablarse con WinBUGS desde R library(R2WinBUGS) # cargamos datos reg…
JEquihua
  • 1,217
  • 3
  • 20
  • 40
1
vote
0 answers

Cant able to access WinBUGS code in R using R2WinBUGS

I have the model specification in WinBUGS and I have specified all the parameters, initials in the R console. While using the bugs() function say, bugs(data, parameters,…
Janani A
  • 11
  • 2
1
vote
1 answer

"Multiple definitions of node mu[1,2]" error in WinBUGS

I am trying to solve multivariate regression with multiple dependent variables on Winbugs. But I am getting errors during compilations. I tried to solve based on solutions to the same problem but was unsuccessful. Any help will be highly…
1
vote
0 answers

Random effects SD depends on prior distributions (WINBUGS)

I am new to Winbugs and I am trying to code a random effects model for network-metaanalysis. I set a vague prior for standard deviation of the of the treatment effect "sd~dunif(0,5)" and I found out that sd's estimates eqaul ca. 2. When I increase…
MadGolli
  • 61
  • 5
1
vote
1 answer

Multiple definitions of node ell[1,2] error in Winbugs

This post is related to my previous post (How to code a matrix in WinBUGS?). Apologize for a new one as it is a new problem. I get the error multiple definitions of node ell[1,2]. I'm not sure how to fix it. Here are the code and the data set for…
user1560215
  • 227
  • 1
  • 13
1
vote
1 answer

How to code a matrix in WinBUGS?

I am trying to code the 2X2 matrix sigma with the 4 elements. Not sure how to code in WINBUGS. My goal is to get the posterior p's, their means and variances and create an ellipse region covered by the two posterior p's. Heres my code…
user1560215
  • 227
  • 1
  • 13
1
vote
1 answer

OpenBUGS error messages:Expected the collection operator c

I could not get the code below to work. it is a hierarchical one way ANOVA model, but when I click data load the error message that appears is expected the collection operator c. What does that mean? Can anyone please help me work the code below…
Sedat
  • 25
  • 7
1
vote
0 answers

R2WinBUGS error message: status 28462

I am trying to run WinBUGS from R, using an example from an introductory text. Actually, I am using the same example and having a very similar problem to this guy: R2WinBUGS - Warning messages but I am getting a different error message and the…
Chris Rowe
  • 11
  • 1
1
vote
0 answers

'load data' issue in winbugs (bayesian hierarchical)

I have a hierarchical linear model in Winbugs. Data is a longitudinal one and is made up of three categories(red = 1, blue = 2, white = 3) k - total observations =280 Structure of the data is as follows: N[] T[] logs[] logp[] cat[] rank[] 1 1 …
guneet
  • 41
  • 4
1
vote
1 answer

BUGS error: "expected the collection operator c error pos 13018"

I am trying to evaluate hierarchical models from R using the R2OpenBUGS library. Relevant variables are: N = 191, p = 4, k = 1, x = N * p matrix (i.e. 191 * 4) of values, t0 = k * (x' * x), y = vector of continuous data with length N, mu0 = vector…
AD_R
  • 57
  • 7
1
vote
1 answer

Code Equation of Ellipse in WinBUGS

I was looking for some help to code an equation of ellipse within WinBUGS. I need to form a Bivariate ellipse using p1's in my data. I tried to use the equation as (X-mu)'sigmainverse(X-mu), where X is the Bivariate Normal Variable, mu is the vector…
user1560215
  • 227
  • 1
  • 13
1
vote
1 answer

"Multiple definition of node a" error in Winbugs

okay i just rewrite my code. Now the problem is when i compile it, I get an error of "multiple definition of node a". Do anyone know what wrong in my code. I create the variable a,b and c for the model not to have many constants. model{ …
Ansel Stars
  • 11
  • 1
  • 3
1
vote
1 answer

How to write syntax for differential item functioning (DIF) in WinBUGS?

How to add data in syntax of WinBUGS 14 for differential item function (DIF)?
0
votes
0 answers

How do I work around ragged data in my bayesian model in WINBUGS? - Coding Issue

Firstly, I am a student very new to what I am doing. I'd like to say that the model I am building is very simplistic at this stage. Please don't judge my work for what you see here as it's totally incomplete and terrible right now and I know it... I…
0
votes
1 answer

Negative binomial , Poisson-gamma mixture winbugs

Winbugs trap error model { for (i in 1:5323) { Y[i] ~ dpois(mu[i]) # NB model as a Poisson-gamma mixture mu[i] ~ dgamma(b[i], a[i]) # NB model as a poisson-gamma mixture a[i] <- b[i] / Emu[i] b[i] <- B * X[i] Emu[i] <- beta0 * pow(X[i], beta1)…