Re: winbugs code won't run
Posted: Thu Jan 24, 2013 12:41 pm
Dear Chris
Thanks for keeping interest in my problem. As previously suggested I contacted John Thompson from Leicester University (author of the winbugsfromstata ado suite) and forwarded all the evidence. He indicated and I quote: "We are currently involved in a complete upgrade of these programs but I can see no reason why the old versions would not work."
As you know I managed to run some Bayesian analyses on WinBUGS (standalone mode) and get plausible results (see attachment) with the attached text files for the model, data and initial values (which include the corrections you suggested). However, I would rather run Bayesian on WinBUGS from within Stata. To that effect, I downloaded from the Leicester University site and installed manually the wbfiles (put them in the appropriate ado folder). However, I cannot produce any results when I run simulations on WinBUGS from Stata despite the fact that simulations run smoothly on WinBUGS in standalone mode (not from within Stata). The coda file is not created by the wbscript command and nothing shows in the data editor. Attached is the output from Stata showing the syntax for the three key wb commands (i.e. wbscript, wbrun, wbcoda) and the WinBUGS log when executing wbscript and wbrun commands from Stata. After all the hours spent on this problem it would be nice to solve it once and for all.
Kind regards
Pierre
Thanks for keeping interest in my problem. As previously suggested I contacted John Thompson from Leicester University (author of the winbugsfromstata ado suite) and forwarded all the evidence. He indicated and I quote: "We are currently involved in a complete upgrade of these programs but I can see no reason why the old versions would not work."
As you know I managed to run some Bayesian analyses on WinBUGS (standalone mode) and get plausible results (see attachment) with the attached text files for the model, data and initial values (which include the corrections you suggested). However, I would rather run Bayesian on WinBUGS from within Stata. To that effect, I downloaded from the Leicester University site and installed manually the wbfiles (put them in the appropriate ado folder). However, I cannot produce any results when I run simulations on WinBUGS from Stata despite the fact that simulations run smoothly on WinBUGS in standalone mode (not from within Stata). The coda file is not created by the wbscript command and nothing shows in the data editor. Attached is the output from Stata showing the syntax for the three key wb commands (i.e. wbscript, wbrun, wbcoda) and the WinBUGS log when executing wbscript and wbrun commands from Stata. After all the hours spent on this problem it would be nice to solve it once and for all.
Kind regards
Pierre