Questions tagged [bugs]
BUGS is an acronym for Bayesian inference Using Gibbs Sampling; BUGS is also a software package for doing this. Use for all versions of BUGS, also WINBUGS and OpenBUGS.
196
questions
0
votes
0
answers
20
views
Conditional independence in BUGs/JAGs?
I am trying to create a hierarchical model in BUGs. I am actually attempting to implement this is Nimble, but I suspect that a JAGs implementation will be informative.
To attempt to reduce my problem ...
0
votes
0
answers
9
views
Why is coin different from poin in WinBUGS
I have the following WinBUGS model and the output densities of interest. I want to understand why the density of coin is different from that of poin. Understanding this will help me to understand ...
0
votes
0
answers
50
views
Why are my training and validation curves suspiciously close to one another (sklearn neural network)
I am trying to graph the accuracy, error and precision scores over epoch for a neural network and am using cross validation. However, my training and validation scores are practically on top of one ...
1
vote
2
answers
74
views
Missing data imputation in univariate meta analysis with binary data using WinBUGS
I want to impute missing data in univariate meta-analysis. My outcome (no. fractures) is a binary variable. Below is the WinBUGS code I have tried. The code is ...
1
vote
0
answers
90
views
Hiearchical Beta-Binomial model via rjags: How to draw posterior sample/do inference on posterior exactly?
I have the following code for bugs model which I want to use with rjags:
...
1
vote
1
answer
81
views
Zero and One tricks for INLA?
The Zero and One tricks are used to sample from a model not included in the basic functions in BUGS:
http://www.medicine.mcgill.ca/epidemiology/Joseph/courses/common/Tricks.html
I have a general and ...
0
votes
1
answer
453
views
Jags: Attempt to redefine node error, mixed effect regression [closed]
I want to perform a mixed effect regression in rjags, with a random slope and intercept. I define the following toy dataset:
...
1
vote
0
answers
241
views
How to fit a mixture of 2D Gaussian in BUGS/JAGS?
I am trying to estimate the parameters of a mixture of 2D Gaussian distribution using JAGS. I first created two components from a multivariate normal distribution and then combined them to get a ...
1
vote
1
answer
87
views
how to overcome error while defining multiple loops for model specification in OpenBUGS?
I'm using following program for MCMC simulation. While compiling this code, I am getting error message which is multiple definition of node s[1]. I am not able to ...
2
votes
1
answer
816
views
How many chains should i run in winBUGS?
i am relatively new to winBUGS and i am running a meta-regression model for bayesian meta-analysis. This model tracks the posterior distributions of the parameters mean and tau-square. Moreover,which ...
2
votes
1
answer
1k
views
CDF of non-standard normal random variable in OpenBUGS
I need to use the cumulative density function (CDF) a normal random variable with mean 0 and standard deviation which is not 1, but I do not know which function to use.
I know the CDF of the standard ...
0
votes
1
answer
968
views
How to correctly include offset in Bayesian Zero-Inflated Poisson model in winbugs
I am trying to fit a Bayesian Zero-inflated model and I want to include an offset term.
When I compared the output of the pscl package; the result of the count model from the winbugs and pscl package ...
0
votes
0
answers
674
views
Posterior Predictive Check for Hierarchical Logistic Regression Model
I need to apply Posterior Predictive Check (PPC) on Hierarchical Logistic Regression Model (so I have binary outcome) to validate my model (to see goodness of fit of my model). I know that I need to ...
2
votes
0
answers
53
views
Is there something wrong with my Bayesian hierarchical spatio-temporal model?
I built a Bayesian spatio-temporal model and one of the parameters to be estimated is the random spatial effects s. The random spatial effect is assigned an intrinsic conditional autoregressive prior (...
3
votes
2
answers
786
views
Are "improper uniform priors" in Bayesian analysis equivalent to maximum likelihood estimations?
The improper uniform distribution for parameter $\theta$ is :
$p(\theta)=1,\ for -\infty<\theta<\infty$.
It is called "improper" since it does not integrate to 1. Because Bayesian theorem is ...