{"id":9,"date":"2014-03-07T09:40:46","date_gmt":"2014-03-07T09:40:46","guid":{"rendered":"https:\/\/staffblogs.le.ac.uk\/bayeswithstata\/?p=9"},"modified":"2025-02-26T13:21:39","modified_gmt":"2025-02-26T13:21:39","slug":"welcome-to-bayesian-analysis-with-stata","status":"publish","type":"post","link":"https:\/\/staffblogs.le.ac.uk\/bayeswithstata\/2014\/03\/07\/welcome-to-bayesian-analysis-with-stata\/","title":{"rendered":"Welcome to Bayesian Analysis with Stata"},"content":{"rendered":"<p style=\"text-align: left\">Welcome, this is a new blog set up to discuss the use of Stata for conducting Bayesian statistical analyses. I have started it to coincide with the publication of my book entitled \u2018<em>Bayesian Analysis with Stata\u2019<\/em>, which will\u00a0appear shortly.<a href=\"https:\/\/staffblogs.le.ac.uk\/bayeswithstata\/files\/2014\/03\/cover.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-16 alignright\" alt=\"cover\" src=\"https:\/\/staffblogs.le.ac.uk\/bayeswithstata\/files\/2014\/03\/cover-230x300.png\" width=\"210\" height=\"281\" \/><\/a><br \/>\nThis project started many years ago when I needed to integrate Stata with WinBUGS, a free program for fitting Bayesian models. My aim was to explore my data in Stata, fit models using WinBUGS and then return to Stata to summarize the results. To help with this, I wrote some ado files that enable the two programs to talk to one another and these were described in a Stata journal article (<a title=\"Bayesian analysis in Stata with WinBUGS\" href=\"http:\/\/www.stata-journal.com\/article.html?article=st0115\">http:\/\/www.stata-journal.com\/article.html?article=st0115<\/a>). Subsequently, I developed and extended those ado files and the updated versions form the basis for the book.<br \/>\nWinBUGS has had an enormous impact on the use of Bayesian methods by providing a black-box tool that frees the user from the complexities of the MCMC algorithms that are the basis for modern Bayesian model fitting. The result is that WinBUGS has had both a beneficial and a harmful effect. Beneficial in that it has greatly increased the use of Bayesian methods by non-specialists, and harmful because there are now people who think that \u2018I am going to run a Bayesian analysis\u2019 and \u2018I am going to use WinBUGS\u2019 are two ways of saying the same thing. When WinBUGS crashes or takes days to run, I have known people try different ad hoc changes to the model or the priors until they can get an answer.<br \/>\nWinBUGS is a fantastic program, but because it is not the only option, I decided to add some chapters to the book to show that Bayesian analysis is possible in Stata without WinBUGS, provided that you have a basic grasp of MCMC algorithms. Such an understanding not only frees us from reliance on WinBUGS, but it helps us to understand what is going on inside the black-box and so enables us to make better use of WinBUGS.<br \/>\nWhen I wrote the book I had in mind a reader who is not a specialist in Bayesian methods but who has some real data that they need to analyse and a desire to discover whether Bayesian methods could help. Consequently, I have tried to explain the basis of the MCMC algorithms in a simple way.<br \/>\nI do not plan to use this blog to go over topics that are already dealt with in the book, but I hope, over the coming months, to discuss some of the issues and applications that space did not allow me to\u00a0cover in the book. Since the aim of the book is to describe practical Bayesian data analysis in Stata for non-specialists, I will keep to the same approach in the blog and discuss the new issues by analysing real data and developing further applications.<\/p>\n<p><em>The &#8220;Bayesian Analysis with Stata&#8221; book cover is used with the permission of StataCorp.\u00a0 Visit<\/em>\u00a0\u00a0 <a href=\"http:\/\/www.stata-press.com\/books\/bayesian-analysis-with-stata\/\">http:\/\/www.stata-press.com\/books\/bayesian-analysis-with-stata\/<\/a> <em>for information on the book.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome, this is a new blog set up to discuss the use of Stata for conducting Bayesian statistical analyses. I have started it to coincide with the publication of my book entitled \u2018Bayesian Analysis with Stata\u2019, which will\u00a0appear shortly. This project started many years ago when I needed to integrate Stata with WinBUGS, a free [&hellip;]<\/p>\n","protected":false},"author":134,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3,4,2,5],"class_list":["post-9","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-bayesian","tag-stata","tag-statistics","tag-winbugs"],"_links":{"self":[{"href":"https:\/\/staffblogs.le.ac.uk\/bayeswithstata\/wp-json\/wp\/v2\/posts\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staffblogs.le.ac.uk\/bayeswithstata\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staffblogs.le.ac.uk\/bayeswithstata\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staffblogs.le.ac.uk\/bayeswithstata\/wp-json\/wp\/v2\/users\/134"}],"replies":[{"embeddable":true,"href":"https:\/\/staffblogs.le.ac.uk\/bayeswithstata\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":11,"href":"https:\/\/staffblogs.le.ac.uk\/bayeswithstata\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"predecessor-version":[{"id":24,"href":"https:\/\/staffblogs.le.ac.uk\/bayeswithstata\/wp-json\/wp\/v2\/posts\/9\/revisions\/24"}],"wp:attachment":[{"href":"https:\/\/staffblogs.le.ac.uk\/bayeswithstata\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staffblogs.le.ac.uk\/bayeswithstata\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staffblogs.le.ac.uk\/bayeswithstata\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}