Search Results
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 |
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.
5
votes
Accepted
Thinning chains in BUGS/JAGS
Less short answer: If you were to run a BUGS model through R2WinBUGS or R2OpenBUGS (or view a summary of WinBUGS output) with the arguments you stated:
n.iter=5000, n.burnin=5000, n.thin=2
you would …
3
votes
WinBUGs - Code for time series models
Alternatively, BUGS code for some time series models can be produced in my tsbugs package for R (and then run in BUGS via R2WinBUGS or similar such packages). …
2
votes
Accepted
WinBUGS: Multiple definitions of a node
I don't know about HMM, but I can see that in every loop of i you are defining State[j]. This is causing the error in WinBUGS as it can not sample from each node (such as State[2]) more than once in e …
1
vote
SV model estimation in R using tsbugs
Tell the bugs command which parameters you want to monitor param=c("psi0", "psi1", "tau").... … sv0.bug<-bugs(data=sv0$data,
inits=list(inits(sv0)),
param=c("psi0", "psi1", "tau"),
model="sv0.txt",
n.iter=11000, n.burnin=10000, n.chains=1) …
0
votes
Accepted
Multiplying a matrix by a scalar which has a prior distribution in OpenBUGS
You need to construct covNew element by element
for(i in 1:5){
for(j in 1:5){
covNew[i,j]<-tau*covPri[i,j]
}
}
BUGS acts a bit differently than R when it comes to constructing matrices/arrays. …
0
votes
Specification of logical node (with distribution?) in WINBUGS
The multiple definitions of node error comes about from you defining a and b twice.
I strongly suspect that WinBUGS can not handle either of your possible a and b assignments as a involves b and b in …