Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 58741

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.

3 votes
Accepted

WinBUGS error - undefined real result

Remember that BUGS parametrises the normal distribution in terms of mean and precision and not mean and standard deviation - so you have incredibly informative priors in your model. …
Matt Denwood's user avatar
  • 1,076
2 votes

Comparing a model with two rate parameters to a model with one. Conjugate priors?

Tim is correct that conjugate priors aren't required - they will alter the sampler that BUGS/JAGS chooses to use, which may alter the speed of the model, but otherwise it should make no difference. … In terms of model selection - Bayes factors are one approach, but DIC (deviance information criterion) will be much more straightforward to calculate and is implemented directly in JAGS and BUGS. …
Matt Denwood's user avatar
  • 1,076
1 vote

Winbugs fixed effects stats output: mean or median?

You are absolutely right that the discrepancy between mean and median just indicates that the posterior distribution isn't symmetrical. This isn't at all unusual, except for very simple problems and/ …
Matt Denwood's user avatar
  • 1,076
0 votes
Accepted

Cumulative link model in JAGS or BUGS

You are almost there, but just a couple of small modifications were needed. First, the dcat distribution response should be >=1 but yours start at 0, so you just need to have Y <- Y + 1. Second, JAG …
Matt Denwood's user avatar
  • 1,076
0 votes

Framework for simulation study to validate bayesian models

Cross-validation is only one potential use of the run.jags.study function - it can also be used for estimating model performance in terms of bias and/or coverage of 95% confidence intervals. For exam …
Matt Denwood's user avatar
  • 1,076
4 votes
Accepted

"Mixed effect" ANOVA in R with JAGS/BUGS

In order to include a random effect (and potentially other fixed effects) you need to format your data in long (rather than wide) format, and use nested indexing with separate vectors as indicator var …
Matt Denwood's user avatar
  • 1,076
3 votes
Accepted

Bayesian meta analysis: implementation in BUGS/JAGS/STAN

I am assuming that you have a function that can be written in a programming language such as R or C, but is not translatable directly to JAGS/BUGS. … This has the advantage that computation is moved out of JAGS/BUGS, so the model itself will be much faster. …
Matt Denwood's user avatar
  • 1,076
3 votes
Accepted

Bayesian p-value in wrong direction using step function in JAGS / BUGS

The so-called 'Bayesian p-value' does not have the same interpretation as a true p-value: remember that you do not have a formal hypothesis test so there is no real concept of a 'probability of the da …
Matt Denwood's user avatar
  • 1,076
2 votes

Suspiciously high Multivariate PSRF from gelman.diag()

As Martyn says, I would not be too worried about the MPSRF in this case. I don't think that it is being computed incorrectly, but it occasionally gives false positives and false negatives. This is tr …
Matt Denwood's user avatar
  • 1,076