<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://enfascination.com/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://enfascination.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mvugt</id>
		<title>enfascination - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://enfascination.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mvugt"/>
		<link rel="alternate" type="text/html" href="http://enfascination.com/wiki/index.php?title=Special:Contributions/Mvugt"/>
		<updated>2026-04-26T04:24:41Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.21.0rc5</generator>

	<entry>
		<id>http://enfascination.com/wiki/index.php?title=ScienceWeblog:Bayesian_data_analysis_on_a_Mac</id>
		<title>ScienceWeblog:Bayesian data analysis on a Mac</title>
		<link rel="alternate" type="text/html" href="http://enfascination.com/wiki/index.php?title=ScienceWeblog:Bayesian_data_analysis_on_a_Mac"/>
				<updated>2011-07-22T20:01:01Z</updated>
		
		<summary type="html">&lt;p&gt;Mvugt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====specifically: Bayesian Data Analysis on a Mac with R and OpenBUGS via BRugs====&lt;br /&gt;
&lt;br /&gt;
[[Blog:Bayesian_data_analysis_in English|Bayesian data analysis]] is a way of figuring out what you believe given what you just saw, but in math.   [http://www.r-project.org/ R] is a free computer language for calculating statistics.  [http://www.openbugs.info/w/ OpenBUGS] is a flexible program for doing Bayesian data analysis.  [http://www.biostat.umn.edu/~brad/software/BRugs/ BRugs] is a bridge between R and BUGS.  Macs are why Steve Jobs wears black turtlenecks.  &lt;br /&gt;
&lt;br /&gt;
This post is solving a very narrow problem. R is cross-platform, but OpenBUGS only works on Windows.  The same holds either for the cousins of OpenBUGS or for their bridges with R.  So it is hard for Mac users to do Bayesian data analysis in R with the flexibility offered by BUGS.  &lt;br /&gt;
&lt;br /&gt;
My colleague [http://hri.cogs.indiana.edu/people/jack.php  Jack Harris] has a fix that doesn't take any fiddling.  Its great.  If you know what you are doing, instructions are below.  If you wish you knew what you were doing, [http://www.indiana.edu/~kruschke/DoingBayesianDataAnalysis/ read a book].  &lt;br /&gt;
&lt;br /&gt;
====Instructions for using BRugs on a Mac====&lt;br /&gt;
* Be a Mac user of R (if you are on Windows then you don't have a problem).&lt;br /&gt;
* Download [http://hri.cogs.indiana.edu/~jackh/WindowsR.app.tar.bz2 this].  &lt;br /&gt;
* Extract the tarball or (if you don't know what that means) hope that your computer magically turns the file into one that ends with ''.app'' .  &lt;br /&gt;
* Open the app, wait a bit.  There will be a benign error, just hit OK.&lt;br /&gt;
* After R loads, type &lt;br /&gt;
 install.packages(&amp;quot;BRugs&amp;quot;)&lt;br /&gt;
* Download [http://www.indiana.edu/~jkkteach/BayesTutorial/TutorialBRugsTest.R this test file] and type&lt;br /&gt;
 setwd(&amp;quot;~/whereeverthefilewent&amp;quot;)&lt;br /&gt;
 source(&amp;quot;TutorialBRugsTest.R&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
You should get pretty graphs.  That means it worked.  If you want more,  the samples from [http://www.indiana.edu/~kruschke/DoingBayesianDataAnalysis Kruschke's book] are [http://www.indiana.edu/~kruschke/DoingBayesianDataAnalysis/Programs/ here].   The samples should all run fine if you download everything to one spot.  The book has puppies on the cover to signal its friendliness to the 'fraid-of-math.&lt;br /&gt;
&lt;br /&gt;
====additional notes====&lt;br /&gt;
There are other workarounds to get BUGS in R on a Mac.  This one is the easiest to get going and I've been told that it has some other advantages (thanks Drew):&lt;br /&gt;
*In this wine environment copy/paste/save work (but with the control key instead of the command key on my Mac keyboard).  &lt;br /&gt;
*Control-R actually runs highlighted text.&lt;br /&gt;
*Downside: shift-arrows does not highlight, instead it overwrites text in this version.&lt;/div&gt;</summary>
		<author><name>Mvugt</name></author>	</entry>

	<entry>
		<id>http://enfascination.com/wiki/index.php?title=ScienceWeblog:Bayesian_data_analysis_on_a_Mac</id>
		<title>ScienceWeblog:Bayesian data analysis on a Mac</title>
		<link rel="alternate" type="text/html" href="http://enfascination.com/wiki/index.php?title=ScienceWeblog:Bayesian_data_analysis_on_a_Mac"/>
				<updated>2011-07-22T19:33:19Z</updated>
		
		<summary type="html">&lt;p&gt;Mvugt: /* how can I uninstall Windows R? */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;====specifically: Bayesian Data Analysis on a Mac with R and OpenBUGS via BRugs====&lt;br /&gt;
&lt;br /&gt;
[[Blog:Bayesian_data_analysis_in English|Bayesian data analysis]] is a way of figuring out what you believe given what you just saw, but in math.   [http://www.r-project.org/ R] is a free computer language for calculating statistics.  [http://www.openbugs.info/w/ OpenBUGS] is a flexible program for doing Bayesian data analysis.  [http://www.biostat.umn.edu/~brad/software/BRugs/ BRugs] is a bridge between R and BUGS.  Macs are why Steve Jobs wears black turtlenecks.  &lt;br /&gt;
&lt;br /&gt;
This post is solving a very narrow problem. R is cross-platform, but OpenBUGS only works on Windows.  The same holds either for the cousins of OpenBUGS or for their bridges with R.  So it is hard for Mac users to do Bayesian data analysis in R with the flexibility offered by BUGS.  &lt;br /&gt;
&lt;br /&gt;
My colleague [http://hri.cogs.indiana.edu/people/jack.php  Jack Harris] has a fix that doesn't take any fiddling.  Its great.  If you know what you are doing, instructions are below.  If you wish you knew what you were doing, [http://www.indiana.edu/~kruschke/DoingBayesianDataAnalysis/ read a book].  &lt;br /&gt;
&lt;br /&gt;
====Instructions for using BRugs on a Mac====&lt;br /&gt;
* Be a Mac user of R (if you are on Windows then you don't have a problem).&lt;br /&gt;
* Download [http://hri.cogs.indiana.edu/~jackh/WindowsR.app.tar.bz2 this].  &lt;br /&gt;
* Extract the tarball or (if you don't know what that means) hope that your computer magically turns the file into one that ends with ''.app'' .  &lt;br /&gt;
* Open the app, wait a bit.  There will be a benign error, just hit OK.&lt;br /&gt;
* After R loads, type &lt;br /&gt;
 install.packages(&amp;quot;BRugs&amp;quot;)&lt;br /&gt;
* Download [http://www.indiana.edu/~jkkteach/BayesTutorial/TutorialBRugsTest.R this test file] and type&lt;br /&gt;
 setwd(&amp;quot;~/whereeverthefilewent&amp;quot;)&lt;br /&gt;
 source(&amp;quot;TutorialBRugsTest.R&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
You should get pretty graphs.  That means it worked.  If you want more,  the samples from [http://www.indiana.edu/~kruschke/DoingBayesianDataAnalysis Kruschke's book] are [http://www.indiana.edu/~kruschke/DoingBayesianDataAnalysis/Programs/ here].   The samples should all run fine if you download everything to one spot.  The book has puppies on the cover to signal its friendliness to the 'fraid-of-math.&lt;br /&gt;
&lt;br /&gt;
====additional notes====&lt;br /&gt;
There are other workarounds to get BUGS in R on a Mac.  This one is the easiest to get going and I've been told that it has some other advantages (thanks Drew):&lt;br /&gt;
*In this wine environment copy/paste/save work (but with the control key instead of the command key on my Mac keyboard).  &lt;br /&gt;
*Control-R actually runs highlighted text.&lt;br /&gt;
*Downside: shift-arrows does not highlight, instead it overwrites text in this version.&lt;br /&gt;
&lt;br /&gt;
== how can I uninstall Windows R? ==&lt;br /&gt;
&lt;br /&gt;
Hi,&lt;br /&gt;
I have a corrupted installation of Windows R. How can I uninstall? I tried to uninstall by moving Windows R to Thresh and emptying thrash, but then when I reinstalled Windows R and tried to install the BRugs package, it complained that it &amp;quot;cannot remove prior installation of BRugs&amp;quot;. So are there pieces of BRugs in other places?&lt;br /&gt;
Thanks!&lt;br /&gt;
Marieke&lt;/div&gt;</summary>
		<author><name>Mvugt</name></author>	</entry>

	</feed>