<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-21621108</id><updated>2012-01-29T22:14:57.541+01:00</updated><category term='LaTeX'/><category term='R'/><title type='text'>Shravan Vasishth's Slog (Statistics blog)</title><subtitle type='html'>This blog is a repository of cool things relating to statistical computing, simulation and stochastic modeling. (Inspired by &lt;a href="http://www.stat.columbia.edu/~gelman/blog/"&gt;Andrew Gelman's blog&lt;/a&gt;--the first useful blog I've seen.)</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-21621108.post-5591551598119665127</id><published>2012-01-26T04:39:00.001+01:00</published><updated>2012-01-26T04:39:16.290+01:00</updated><title type='text'>How to append R code in appendix using Sweave</title><content type='html'>In the statistics course I'm doing, the solutions to assignments have R code, but the instructor doesn't want to see them in the main text but rather in an appendix. &amp;nbsp;Here's apparently how to do that without copying and pasting the code into an appendix (I got this nifty example from &lt;a href="http://stackoverflow.com/questions/4362747/print-the-sourced-r-file-to-an-appendix-using-sweave"&gt;here&lt;/a&gt;):&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="default prettyprint" style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 17px; line-height: 22px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: left; vertical-align: baseline; width: auto;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;\&lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;begin&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;{&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;appendix&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;}&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;\&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;section&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;{&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Appendix&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; A&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;}&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;\&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;subsection&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;{&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;R session information&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;}&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;SessionInforamtaion&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;echo&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;F&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="kwd" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;eval&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;T&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;results&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;tex&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&amp;gt;&amp;gt;=&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;br /&gt;toLatex&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;sessionInfo&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;())&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;@&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;\&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;subsection&lt;/span&gt;&lt;span class="pun" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;{&lt;/span&gt;&lt;span class="typ" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;The&lt;/span&gt;&lt;span class="pln" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt; simulation&lt;/span&gt;&lt;span class="str" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: maroon; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;'s source code}&lt;br /&gt;&lt;br /&gt;&amp;lt;&lt;sourcecode,echo=f,eval=t&gt;&amp;gt;=&lt;br /&gt;&lt;br /&gt;Stangle(file.path("Projectpath","RnwFile.Rnw"))&lt;br /&gt;&lt;br /&gt;SourceCode &amp;lt;- readLines(file.path("Projectpath","Codefile.R"))&lt;br /&gt;&lt;br /&gt;writeLines(SourceCode)&lt;br /&gt;&lt;br /&gt;@&lt;br /&gt;\end{appendix} &lt;/sourcecode,echo=f,eval=t&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-5591551598119665127?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/5591551598119665127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=5591551598119665127' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/5591551598119665127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/5591551598119665127'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2012/01/how-to-append-r-code-in-appendix-using.html' title='How to append R code in appendix using Sweave'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-2356186671365168181</id><published>2011-12-01T07:04:00.001+01:00</published><updated>2012-01-29T22:14:57.550+01:00</updated><title type='text'>(In-progress) Review of Graduate Certificate in Statistics offered at Sheffield</title><content type='html'>&lt;br /&gt;[This review is under construction]&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Recently, on Andrew Gelman's blog there was a discussion about how to get yourself a statistics education (presumably without going through the whole process of becoming a professional statistician). &lt;a href="http://andrewgelman.com/2012/01/advice-on-do-it-yourself-stats-education/"&gt;Here&lt;/a&gt;'s the discussion on Gelman's blog, with lots of suggestions on how to achieve this goal.&lt;br /&gt;&lt;br /&gt;This was the kind of problem that motivated me to look for a full course of study that would give me the background that's missing.&lt;br /&gt;&lt;br /&gt;In September 2011 I started a graduate certificate in statistics, at Sheffield (&lt;a href="http://books.google.de/books/about/The_Chinese_in_Japan.html?id=Qs-FPwAACAAJ&amp;amp;redir_esc=y"&gt;my wife's alma mater,&lt;/a&gt; coincidentally). &amp;nbsp;preparatory course, which gets you ready to start an MSc in statistics. It's a nine-month affair with three courses (Math, Probability, Statistics) which are taught more or less in parallel (they cleverly stagger the assignment submissions so that one is only working on one of the three at any one time). The course guide says it's a time commitment of 15 hours a week, which seems amazingly little (imagine that you devote the last three hours of your day to working on something like this---you could easily exceed 15 hours a week). But it's a realistic number; I think I spent about that much time every week on it. Occasionally I have spent more (when I ran into trouble).&lt;br /&gt;&lt;br /&gt;This is an incomplete review; I am working on it as I do the course.&lt;br /&gt;&lt;br /&gt;Short version: the course is *excellent*. I wish I had done this years ago. But I would recommend it only to people who are really willing to sweat it out. You have to be able to do your own research when you need more detail on a particular topic; I am not sure all my classmates in this course are in full control of the information-search process, esp. as regards the use of R (the course is R based). I don't blame them though; R can be scarily obscure.&lt;br /&gt;&lt;br /&gt;Long version:&lt;br /&gt;&lt;br /&gt;Preparation for the course: I wish I had reviewed permutations and combinations, and trigonometry before starting the course. I found it the hardest to recall these things while working through the course. I would recommend the following sites for trig:&lt;br /&gt;&lt;br /&gt;http://en.wikipedia.org/wiki/Trig_identities&lt;br /&gt;&lt;br /&gt;http://www.mecmath.net/trig/&lt;br /&gt;&lt;br /&gt;For permutations and combinations, this is badly formatted but it could be useful: http://www.bmlc.ca/PureMath30/Pure%20Math%2030%20-%20Permutations%20and%20Combinations.html&lt;br /&gt;&lt;br /&gt;The assignments:&lt;br /&gt;&lt;br /&gt;Each assignment I did (I've done 6 so far, out of a total of 18 to be assigned by the time the course ends; only the last 15 are graded) took a lot of time, and if you are typesetting the submission in LaTeX, you should expect a full day to be devoted to that (at least). Most of the questions directly use knowledge that was recently covered in the course, but some of the questions require some thought. There was one situation where one had to provide a closed form solution to a finite geometric series that was something like \sum n+1 r^n. There's a really nifty trick in the book Concrete Math by Knuth and colleagues, that shows you how to solve that (the key observation is that n+1 r^n is the differential of r^{n+1}), but if I hadn't read that book long ago I would probably not hit on the solution... The solution provided by the instructor for that problem was simpler and seemed magical, I have yet to study it carefully.&lt;br /&gt;&lt;br /&gt;I wish the assignments were prepared with greater attention to precision in writing. A couple of times I had a hard time trying to figure out what precisely was meant, and judging from the others' questions, I was not the only one.&lt;br /&gt;&lt;br /&gt;The grading is tough, but I kind of like that the graders are so anal retentive about giving every point. You have to respect them for that. When I saw how they grade, I felt a bit ashamed that I am so soft on my students in Potsdam. These guys are hard-asses. I guess I've gone soft after eight years in a soft-skills oriented linguistics department. Computer science and math at Ohio State was about as strict.&lt;br /&gt;&lt;br /&gt;My grades so far are below (percentages). This excludes the first assignments; they do not count for the final grade. In general, these assignments count for 20% of the final grade. You have to get minimum 70% overall in the final grade (after the exams in June 2012) to be allowed to continue on to the MSc.&lt;br /&gt;&lt;br /&gt;Mathematics:&lt;br /&gt;Assignment-1: 100%&lt;br /&gt;## Notes: I was pleasantly surprised to get this grade, but I do admit the problems were not too hard. The hardest part of this course is not the math but the probability theory.&lt;br /&gt;Assignment-2: 97%&lt;br /&gt;## Made a stupid mistake. Don't ask.&lt;br /&gt;Assignment-3:&lt;br /&gt;Assignment-4:&lt;br /&gt;Assignment-5:&lt;br /&gt;&lt;br /&gt;Probability:&lt;br /&gt;Assignment-1: 76%&lt;br /&gt;## Notes: I did relatively badly in the first assignment because I reversed a couple of signs accidentally, and because I didn't leave enough time for working on the assignment. I lost a lot of points on a stupid and mindless exercise involving reading numbers off of a binomial probability table --- shame on me.&lt;br /&gt;Assignment-2:&lt;br /&gt;Assignment-3:&lt;br /&gt;Assignment-4:&lt;br /&gt;Assignment-5:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Statistics:&lt;br /&gt;Assignment-1: 84%&lt;br /&gt;Assignment-2:&lt;br /&gt;Assignment-3:&lt;br /&gt;Assignment-4:&lt;br /&gt;Assignment-5:&lt;br /&gt;&lt;br /&gt;The textbooks:&lt;br /&gt;&lt;br /&gt;One minor gripe I have in the course is some of the textbooks assigned. I think the course designers should probably invest some time into building complete course-specific lecture notes. Sometimes they do provide lectures notes, and these are great (my only complaint is that the authors don't believe in page numbers, which can be a real hassle if you print out the material and accidentally drop them on the floor). But that said, I realize that producing customized lecture notes is a major undertaking and I don't blame them for relying on existing books.&lt;br /&gt;&lt;br /&gt;The math textbook is by Gilbert and Jordan, Guide$^2$ Mathematical Methods. The title is a bit strange, I mean the 2 for to (although the authors cannot be blamed for this naming decision---apparently Macmillan has a Guide 2... series). The book has one positive aspect: it covers the relevant material in the sense that it goes through the topics. So, for someone like me, who doesn't know exactly what I need to know as background to read more advanced textbooks on statistics, this is a good extended listing of the things I should know (or recall from high school). This is all good. What makes the reader's life hard are the super-terse proofs/solutions to exercises, and the large number of typos (especially in the solutions). The course organizers released a list of typos for the book at the start of the course, but there are even more typos than in the errata. The notation can also be sloppy and the reader has to be careful (e.g., at one point they write F-p, where F are the *names* of a function; what they meant was F(x)-p(x)).&lt;br /&gt;&lt;br /&gt;An example of the terseness is the proof that the limit of sin(x)/x when x approaches 0 is 1. I had no idea where that proof was going until I watched Strang's online lecture (MIT open courseware). After watching Strang's lecture, I was able to unpack the proof myself, but I doubt that it could be done easily by just working through it (are proofs meant to be hard work to unpack? Read the Salle et al book on Calculus to see that the answer may be no). &amp;nbsp; Gilbert and Jordan should read Knuth's book on writing mathematics. I would recommend Strang's lectures, and Calculus by Salas, Hille and Etgen (I have the 9th Edition); this last book really nailed it for me. This book has the smoothness and feel of Cormen, Rivest et al on Algorithms.&lt;br /&gt;&lt;br /&gt;The probability theory book (Ross, A First Course in Probability) is OK in that it covers all the points. But it has the irritating property that each definition is followed by half a dozen totally unrelated examples. This in itself is not bad, but the examples are SCARY. I'm not sure I need to see the toughest applications of the latest idea learnt right away. After a bit of reading this sort of teaching-by-example at least this reader just gets depressed (there is no way I would have worked out those example answers myself after just reading the definitions provided immediately earlier). I found the online book by Jay Kerns much, much more useful for the present course---the course organizers should consider switching to that or at least assigning it alongside Ross, with some warnings to not get intimidated by Ross' style. &lt;a href="http://www.amazon.com/review/R12POSKTH1OQOM/ref=cm_cr_pr_perm?ie=UTF8&amp;amp;ASIN=013603313X&amp;amp;nodeID=&amp;amp;tag=&amp;amp;linkCode="&gt;Here&lt;/a&gt; is an excellent review of the Ross book on amazon that pretty much summarizes the main problems in the book.&lt;br /&gt;&lt;br /&gt;There is an accompanying book on probability (by Freund, but authors are Miller and Miller) which is a straightforward and formal introduction to mathematical statistics; I like that more. It's part of the statistics course, not the probability course.&lt;br /&gt;&lt;br /&gt;The statistics textbook is by Moore, McCabe and someone else, is absolutely terrible (apparently I'm not the only one complaining; see &lt;a href="http://www.cs.utoronto.ca/~radford/mm-errata/errata.html"&gt;here&lt;/a&gt;). &amp;nbsp;The book seems to be written for first year undergrads in statistics (nothing wrong with that of course). The large number of disconnected and silly examples (for example, for planned experiments vs observational studies) following every new concept lead to a feeling of total disorientation. There is also a painful attempt to make the book relevant to the modern user: examples about cell phones and iPhone Apps abound, presumably to draw in the young reader's eyes away from the cell phone as they read.&lt;br /&gt;&lt;br /&gt;There are so many really good books on introductory statistics using R (e.g., in the Use R series); I wish they had used one of them. As it is, you have to be either real good at R, or be able to quickly get on board with R, if you want to do this course. It's completely based on R. This makes the course absolutely wonderful for me, &amp;nbsp;but several of the students went into a state of blind panic (for example, a beginner often cannot easily figure out how to find out how to change a directory within R---in my own courses at Potsdam, I think we spend about 90 minutes just getting them used to the interface). Using an R-based book for introductory statistics would have been much better than Moore et al's. I have to admit though that I cannot name an alternative to Moore et al's right away that covers exactly the same material.&lt;br /&gt;&lt;br /&gt;But overall, a thumbs-up. This is a course every non-statistician who needs to work with data should take. Even in these few months I learnt a lot of interesting and even downright cool things (mostly in the math segment, but also in probability theory). The big advantages of doing this kind of structured course are that:&lt;br /&gt;- you have to solve problems on a daily basis in order to the get the assignments done on time, and someone carefully checks your work. If you try to read books on topics that are specifically relevant to you, like &lt;a href="http://andrewgelman.com/2012/01/advice-on-do-it-yourself-stats-education/"&gt;Gelman recommends&lt;/a&gt;&amp;nbsp;(of course he recommends his own book), you are not going to get that quality of feedback (no, not even with a solutions manual).&lt;br /&gt;- you can ask a statistician questions that come up as you read or work on real problems that affect your own life, &lt;i&gt;and they will take the time to answer them fully&lt;/i&gt;. This is virtually impossible if you just try to talk to a random statistician (generally, they either heap scorn on you, or give a rambling answer that doesn't really answer the question, because they just don't want to pay attention long enough to try to understand the problem---not that I blame them for that; why should they care what your problem is?).&lt;br /&gt;&lt;br /&gt;Material I consulted while doing this course (incomplete):&lt;br /&gt;1. &lt;a href="http://www.math.uiuc.edu/~r-ash/Remarks.pdf"&gt;On writing math&lt;/a&gt;&lt;br /&gt;2. &lt;a href="http://www.lulu.com/product/ebook/introduction-to-probability-and-statistics-using-r/17396167"&gt;Kerns' book on probability&lt;/a&gt;&lt;br /&gt;3. &lt;a href="http://www.dartmouth.edu/~chance/teaching_aids/books_articles/probability_book/book.html"&gt;Grinstead and Snell on probability&lt;/a&gt;&lt;br /&gt;4. Salle et al Calculus&lt;br /&gt;5. Spivak Calculus&lt;br /&gt;&lt;br /&gt;Notes I kept on the course:&lt;br /&gt;&lt;br /&gt;I've been keeping notes on what I learnt, these are located &lt;a href="http://www.ling.uni-potsdam.de/~vasishth/statsnotesvasishth.pdf"&gt;here&lt;/a&gt; (please send corrections to me). Ask me for the source .Rnw file if you want to expand on them.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[to be continued]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-2356186671365168181?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/2356186671365168181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=2356186671365168181' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2356186671365168181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2356186671365168181'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2011/12/part-1-of-2-review-of-graduate.html' title='(In-progress) Review of Graduate Certificate in Statistics offered at Sheffield'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-2134887788682317155</id><published>2011-11-06T09:08:00.001+01:00</published><updated>2011-11-06T10:08:14.014+01:00</updated><title type='text'>How to present one's reviewing service in one's cv</title><content type='html'>I've been listing my reviewing service as an enumerated list in my cv till now, but recently I saw a better option: Brian Roark's cv has a semi-graphical representation of his reviewing record. His presentation is ugly IMHO, but the idea is great. So, inspired by his example, I came up with this as a first attempt:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-rOb9SmoQKLo/TrZLY3aKGxI/AAAAAAAAATI/x0-S7vDpDhM/s1600/reviewingpublic.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-rOb9SmoQKLo/TrZLY3aKGxI/AAAAAAAAATI/x0-S7vDpDhM/s320/reviewingpublic.jpg" width="317" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The code goes like this:&lt;br /&gt;&lt;br /&gt;The data file has the outlet (journal etc. name) and year, sorted by the number of times I reviewed for that outlet.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;gt; head(data)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;outlet year count.sum&lt;br /&gt;9 &amp;nbsp; &amp;nbsp; &amp;nbsp;Brain_Research 2006 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CBG 2010 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CJAL 2012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;28 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DFG 2007 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;29 Dial_and_Discourse 2010 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;30 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EACL 2012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Define the x and y axes:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="p1"&gt;y&lt;span class="s1"&gt;&amp;lt;-&lt;/span&gt;data&lt;span class="s1"&gt;$&lt;/span&gt;year&lt;/div&gt;&lt;div class="p1"&gt;x&lt;span class="s1"&gt;&amp;lt;-&lt;/span&gt;data&lt;span class="s1"&gt;$&lt;/span&gt;outlet&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And plot:&lt;br /&gt;&lt;br /&gt;library(ggplot2)&lt;br /&gt;&lt;br /&gt;&lt;div class="p1"&gt;(&lt;span class="s1"&gt;p&lt;/span&gt;&amp;lt;-qplot(&lt;span class="s1"&gt;x&lt;/span&gt;,&lt;span class="s1"&gt;y&lt;/span&gt;,&lt;span class="s1"&gt;geom&lt;/span&gt;=c(&lt;span class="s2"&gt;"point"&lt;/span&gt;),&lt;/div&gt;&lt;div class="p2"&gt;&lt;span class="s1"&gt;alpha&lt;/span&gt;&lt;span class="s3"&gt;=I(&lt;/span&gt;&lt;span class="s4"&gt;2&lt;/span&gt;&lt;span class="s3"&gt;/&lt;/span&gt;&lt;span class="s4"&gt;3&lt;/span&gt;&lt;span class="s3"&gt;),&lt;/span&gt;&lt;span class="s1"&gt;ylab&lt;/span&gt;&lt;span class="s3"&gt;=&lt;/span&gt;"year"&lt;span class="s3"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;xlab&lt;/span&gt;&lt;span class="s3"&gt;=&lt;/span&gt;"journals/conferences/funding agencies/other"&lt;span class="s3"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;main&lt;/span&gt;&lt;span class="s3"&gt;=paste(&lt;/span&gt;"summary of reviewing service (2003-2011); "&lt;span class="s3"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;n&lt;/span&gt;&lt;span class="s3"&gt;,&lt;/span&gt;" items \n public version [sorted by frequency] \n current as of "&lt;span class="s3"&gt;,Sys.Date()),&lt;/span&gt;&lt;span class="s1"&gt;position&lt;/span&gt;&lt;span class="s3"&gt;=position_jitter(&lt;/span&gt;&lt;span class="s1"&gt;w&lt;/span&gt;&lt;span class="s3"&gt;=&lt;/span&gt;&lt;span class="s4"&gt;0&lt;/span&gt;&lt;span class="s3"&gt;,&lt;/span&gt;&lt;span class="s1"&gt; h&lt;/span&gt;&lt;span class="s3"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;.2&lt;/span&gt;&lt;span class="s3"&gt;))+coord_flip())&lt;/span&gt;&lt;/div&gt;&lt;div class="p2"&gt;&lt;span class="s3"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="p2"&gt;&lt;span class="s3"&gt;Suggestions for improvement are most welcome.&lt;/span&gt;&lt;/div&gt;&lt;div class="p2"&gt;&lt;span class="s3"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="p2"&gt;&lt;span class="s3"&gt;This presentation has so many advantages over a listing: it tells you whom I reviewed for most, and it's more compact.&lt;/span&gt;&lt;/div&gt;&lt;div class="p2"&gt;&lt;span class="s3"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="p2"&gt;Of course, I have two versions of this plot, one is public (the one above), and the other is private (because I review for universities and don't want to violate confidentiality). I have a switch in latex that generates a public or private version:&lt;/div&gt;&lt;div class="p2"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="p2"&gt;In the preamble write:&lt;/div&gt;&lt;div class="p2"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="p2"&gt;&lt;/div&gt;&lt;div class="p2"&gt;\ifx\UseOption\undefined&lt;/div&gt;&lt;div class="p2"&gt;\def\UseOption{optb}&lt;/div&gt;&lt;div class="p2"&gt;\fi&lt;/div&gt;&lt;div class="p2"&gt;\usepackage{optional}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then the public version goes like this:&lt;/div&gt;&lt;br /&gt;&lt;div class="p2"&gt;&lt;span class="s3"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="p2"&gt;&lt;span class="s3"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="p2"&gt;%% public version&lt;/div&gt;&lt;div class="p2"&gt;\opt{optb}{&lt;/div&gt;&lt;div class="p2"&gt;\begin{figure}[htbp]&lt;/div&gt;&lt;div class="p2"&gt;\begin{center}&lt;/div&gt;&lt;div class="p2"&gt;\includegraphics[width=9cm]{"reviewingpublic"}&lt;/div&gt;&lt;div class="p2"&gt;\caption{ACL: Association of Computational Linguistics; AMLaP: Architectures and Mechanisms for Language Processing; BRM: Behavior Research Methods;&amp;nbsp;&lt;/div&gt;&lt;div class="p2"&gt;CBG: Copenhagen Business School;&lt;/div&gt;&lt;div class="p2"&gt;CUNY: CUNY Sentence Processing Conference; Cog\_Sci: Cognitive Science; Cog\_Sci\_Conf: Cognitive Science Conference; DFG: Deutsche Forschungsgemeinschaft; Dial\_and\_Discourse: Dialogue and Discourse; EACL: European ACL; ETAP: Experimental and Theoretical Approaches in Prosody; ESF: European Science Foundation; &amp;nbsp;ICCM: International Conference on Cognitive Modeling; JML: Journal of Memory and Linguistics; J\_Jap\_Ling: Journal of Japanese Linguistics; J\_of\_Ling: Journal of Linguistics; LCP: Language and Cognitive Processes; Lang\_and\_Speech: Language and Speech; Ling\_Evidence: Linguistic Evidence; NLLT: Natural Language and Linguistic Theory; NSF: National Science Foundation (USA); NWO: Netherlands Organization for Scientific Research; PBR: Psychological Bulletin and Review; Research\_Lang\_Comp: Research on Language and Competition; TiCS: Topics in Cognitive Science.}&lt;/div&gt;&lt;div class="p2"&gt;\label{reviewing}&lt;/div&gt;&lt;div class="p2"&gt;\end{center}&lt;/div&gt;&lt;div class="p2"&gt;\end{figure}&lt;/div&gt;&lt;div class="p2"&gt;}&lt;/div&gt;&lt;div class="p2"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="p2"&gt;And the private version goes like this:&lt;/div&gt;&lt;div class="p2"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="p2"&gt;\opt{opta}{your figure here}&lt;/div&gt;&lt;div class="p2"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="p2"&gt;When compiling one does (&amp;gt; is the command line):&lt;/div&gt;&lt;div class="p2"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="p2"&gt;&lt;/div&gt;&lt;div class="p2"&gt;for the public version:&lt;/div&gt;&lt;div class="p2"&gt;&amp;gt; pdflatex vasishthcv.tex&lt;/div&gt;&lt;div class="p2"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="p2"&gt;for the restricted version:&lt;/div&gt;&lt;div class="p2"&gt;&amp;gt; pdflatex -jobname vasishthcv "\def\UseOption{opta}\input{vasishthcv}"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="p2"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="p2"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="p2"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="p2"&gt;&lt;span class="s3"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="p2"&gt;&lt;span class="s3"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-2134887788682317155?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/2134887788682317155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=2134887788682317155' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2134887788682317155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2134887788682317155'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2011/11/how-to-present-ones-reviewing-service.html' title='How to present one&apos;s reviewing service in one&apos;s cv'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-rOb9SmoQKLo/TrZLY3aKGxI/AAAAAAAAATI/x0-S7vDpDhM/s72-c/reviewingpublic.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-3781421186643778112</id><published>2011-10-31T15:46:00.001+01:00</published><updated>2011-10-31T20:08:15.177+01:00</updated><title type='text'>Graduate certificate in statistics</title><content type='html'>I finally have a sabbatical; such a relief not to have to teach for a bit. What can one usefully do during a sabbatical? Here's a preliminary list:&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;(a) bird watching&lt;/div&gt;&lt;div&gt;(b) lounge around&lt;/div&gt;&lt;div&gt;(c) check email relentlessly&lt;/div&gt;&lt;div&gt;(d) surf the web for six months straight&lt;/div&gt;&lt;div&gt;(e) do a statistics degree&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I decided to go for (e). I never really learned statistics systematically (some would say, not at all, and they would not be far off the mark ;), which is absurd if you consider that it's practically my bread and butter (using statistics for data analysis). Why isn't everyone in psycholinguistics a professional statistician? God knows we all need that expertise.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So I surfed the web a bit and found something that kills two birds with one stone. A part time distance MSc in statistics, at Sheffield. Time commitment is 20 hours a week (i.e., 3 hours a day if you work on it seven days a week); very minimal I would say. If I cut out on reading fiction and other non-work books in the evenings after dinner, that's three hours right there every day.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;At Ohio State, one of my professors, Brian Joseph, related the story of a physicist at OSU who decided to learn Sanskrit by taking one of Brian's classes; he did his studies in the evenings after dinner. Before long he was teaching the course with Brian. So my only question is: why the hell didn't I think of formally learning statistics earlier?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;I'm doing the prep course first, to review the math, stats, and probability theory that is assumed for the MSc, and plan to start the MSc next year (I do have to pass the prep course, would be pretty annoying if I failed ;). And the course is great! I never realized back in school that math is FUN, probability theory is FUN, I only understood that once I got to Ohio State. And I'm again enjoying struggling with unfamiliar problems. &amp;nbsp;The only annoying thing is that the homework assignments have to, of course, be submitted online, and so I feel compelled to typeset them nicely using Sweave+LaTeX, which is very time consuming. At Ohio State I never did that, I just wrote them up by hand (e.g., in formal language theory or discrete math or logic classes). Somehow the idea of an online submission demands typesetting, I can't bring myself to write it with a pn, scan the solution, and send it...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The course itself is good so far (too early to tell; e.g., in the stats segment we are drawing boxplots "by hand", which I did for the first time in my life today). But the textbooks could have been better, IMHO.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-3781421186643778112?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/3781421186643778112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=3781421186643778112' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/3781421186643778112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/3781421186643778112'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2011/10/graduate-certificate-in-statistics.html' title='Graduate certificate in statistics'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-2679471080173358790</id><published>2011-09-01T10:53:00.000+02:00</published><updated>2011-09-01T10:53:27.992+02:00</updated><title type='text'>Lower p-values apparently give you more confidence in the alternative hypothesis</title><content type='html'>&lt;br /&gt;&lt;div class="p1"&gt;"But an&amp;nbsp;isolated finding, especially when embodied&amp;nbsp;in a 2 X 2 design, at the .05&amp;nbsp;level or even the .01 level was&amp;nbsp;frequently judged not sufficiently&amp;nbsp;impressive to warrant archival publication." (p. 554)&lt;/div&gt;&lt;div class="p1"&gt;From: Melton, A. W. (1962). Editorial.&amp;nbsp;&lt;i&gt;Journal of Experimental Psychology, 64,&amp;nbsp;&lt;/i&gt;553–557.&lt;/div&gt;&lt;div class="p1"&gt;&lt;/div&gt;&lt;div class="p1"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="p1"&gt;According to Gigerenzer et al (Published in: D. Kaplan (Ed.). (2004).&amp;nbsp;&lt;i&gt;The Sage handbook of quantitative methodology for the social sciences&amp;nbsp;&lt;/i&gt;(pp. 391–408)), this quote is where the common convention comes from to use p-values as a measure of one's belief in a result.&lt;/div&gt;&lt;div class="p1"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="p1"&gt;Gigerenzer et al write:&amp;nbsp;&lt;/div&gt;&lt;div class="p1"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="p1"&gt;"Editors of major journals such as A. W. Melton (1962) made null hypothesis testing a necessary&lt;/div&gt;&lt;div class="p1"&gt;condition for the acceptance of papers and made small&amp;nbsp;&lt;i&gt;p&lt;/i&gt;-values the hallmark of excellent&lt;/div&gt;&lt;div class="p1"&gt;experimentation."&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-2679471080173358790?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/2679471080173358790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=2679471080173358790' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2679471080173358790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2679471080173358790'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2011/09/lower-p-values-apparently-give-you-more.html' title='Lower p-values apparently give you more confidence in the alternative hypothesis'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-1488114604747798625</id><published>2011-07-17T18:11:00.000+02:00</published><updated>2011-07-17T18:11:22.589+02:00</updated><title type='text'>Potsdam Mind Research Repository</title><content type='html'>Here's a revolutionary website: all data and code accompanying papers.&lt;br /&gt;&lt;br /&gt;http://read.psych.uni-potsdam.de/pmr2/&lt;br /&gt;&lt;br /&gt;Imagine if it was mandatory to release data with your publication! It would make life so much easier.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-1488114604747798625?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/1488114604747798625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=1488114604747798625' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/1488114604747798625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/1488114604747798625'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2011/07/potsdam-mind-research-repository.html' title='Potsdam Mind Research Repository'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-908647456428631917</id><published>2010-12-09T20:55:00.002+01:00</published><updated>2010-12-09T20:55:34.930+01:00</updated><title type='text'>The book is out</title><content type='html'>You can &lt;a href="http://www.springerlink.com/content/978-3-642-16312-8#section=811438&amp;page=1"&gt;read it online&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-908647456428631917?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/908647456428631917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=908647456428631917' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/908647456428631917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/908647456428631917'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2010/12/book-is-out.html' title='The book is out'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-2618780111211190839</id><published>2010-10-15T14:47:00.001+02:00</published><updated>2010-10-15T14:53:28.222+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'></title><content type='html'>I foolishly tried to convert a matrix M to a vector using vector:&lt;br /&gt;&lt;br /&gt;vector(M)&lt;br /&gt;&lt;br /&gt;But this is done column wise, so that adjacent row items end up non-adjacent.&lt;br /&gt;&lt;br /&gt;The right way to do this seems to be:&lt;br /&gt;&lt;br /&gt;library(data)&lt;br /&gt;unmatrix(M, byrow=TRUE)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-2618780111211190839?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/2618780111211190839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=2618780111211190839' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2618780111211190839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2618780111211190839'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2010/10/i-foolishly-tried-to-convert-matrix-m.html' title=''/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-1524286922333446061</id><published>2010-09-29T17:46:00.010+02:00</published><updated>2010-10-01T21:42:28.542+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>Mike's and my book is coming out</title><content type='html'>&lt;a href="http://www.ling.uni-potsdam.de/~vasishth/book.html"&gt;&lt;br /&gt;Our book&lt;/a&gt; is finally coming out:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ling.uni-potsdam.de/~vasishth/book.html"&gt;&lt;br /&gt; &lt;IMG SRC="http://www.ling.uni-potsdam.de/~vasishth/Photos/U1.jpg" WIDTH="250" BORDER="0" TITLE="Shravan Vasishth and Michael Broe"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can buy it on &lt;br /&gt;&lt;a href="http://www.amazon.com/Foundations-Statistics-Simulation-based-Approach/dp/3642163122"&gt;Amazon.com&lt;/a&gt;, &lt;a href="http://www.amazon.de/Foundations-Statistics-Simulation-based-Approach/dp/3642163122/ref=sr_1_1?ie=UTF8&amp;s=books-intl-de&amp;qid=1285784509&amp;sr=1-1"&gt;Amazon.de&lt;/a&gt;, or &lt;a href="http://www.springer.com/mathematics/applications/book/978-3-642-16312-8"&gt;Springer.com&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-1524286922333446061?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.ling.uni-potsdam.de/~vasishth/book.html' title='Mike&apos;s and my book is coming out'/><link rel='enclosure' type='text/html' href='http://www.ling.uni-potsdam.de/~vasishth/book.html' length='0'/><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/1524286922333446061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=1524286922333446061' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/1524286922333446061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/1524286922333446061'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2010/09/mikes-and-my-book-is-coming-out.html' title='Mike&apos;s and my book is coming out'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-8365765883317246016</id><published>2010-09-29T13:41:00.001+02:00</published><updated>2010-09-29T13:43:46.213+02:00</updated><title type='text'>tilde's in URLs (LaTeX)</title><content type='html'>Obscure LaTeX command:&lt;br /&gt;&lt;br /&gt;\textasciitilde{}  % for tilde's in URLs as text.&lt;br /&gt;&lt;br /&gt;I'd been using $\sim$.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-8365765883317246016?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/8365765883317246016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=8365765883317246016' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/8365765883317246016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/8365765883317246016'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2010/09/tildes-in-urls-latex.html' title='tilde&apos;s in URLs (LaTeX)'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-6337466715252516669</id><published>2010-09-25T07:43:00.004+02:00</published><updated>2010-10-02T15:36:06.416+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><title type='text'>Public and private cv's (LaTeX)</title><content type='html'>Not directly related to statistics but:&lt;br /&gt;&lt;br /&gt;Often one wants to have a public cv that one can put on the web, and a more restricted one that has private information that one only needs for a job application or something. Instead of maintaining two cvs, there's an easy way to automate it if you are a latex user.&lt;br /&gt;&lt;br /&gt;1. For a public cv, type:&lt;br /&gt;&lt;br /&gt;## public&lt;br /&gt;pdflatex vasishthcv.tex&lt;br /&gt;&lt;br /&gt;2. For a restricted cv, type:&lt;br /&gt;## restricted&lt;br /&gt;pdflatex -jobname vasishthcv "\def\UseOption{opta}\input{vasishthcv}"&lt;br /&gt;&lt;br /&gt;where in the tex file, you have in the preamble:&lt;br /&gt;&lt;br /&gt;\ifx\UseOption\undefined&lt;br /&gt;\def\UseOption{optb}&lt;br /&gt;\fi&lt;br /&gt;\usepackage{optional}&lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;br /&gt;in the text itself for restricted sections use:&lt;br /&gt;&lt;br /&gt;    \opt{opta}{Home address:...}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-6337466715252516669?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/6337466715252516669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=6337466715252516669' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/6337466715252516669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/6337466715252516669'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2010/09/public-and-private-cvs.html' title='Public and private cv&apos;s (LaTeX)'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-7578047149751416189</id><published>2009-12-11T06:52:00.002+01:00</published><updated>2009-12-11T06:55:38.504+01:00</updated><title type='text'>Statistics in linguistics</title><content type='html'>People in linguistics tend to treat statistical theory as something that can be outsourced--we don't really need to know anything about the details, we just need to know which button to click.&lt;br /&gt;&lt;br /&gt;People easily outsource statistical knowledge in an empirical paper, but the same people would be appalled if they hired an assistant to work out the technical details of syntactic theory for a syntax paper.&lt;br /&gt;&lt;br /&gt;The statistics *is* the science, it's not some extra appendage that can be outsourced.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-7578047149751416189?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/7578047149751416189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=7578047149751416189' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/7578047149751416189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/7578047149751416189'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2009/12/statistics-in-linguistics.html' title='Statistics in linguistics'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-2923475087366687714</id><published>2009-04-23T12:18:00.002+02:00</published><updated>2010-10-01T21:13:56.876+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>How to get ESS style indentation in textmate</title><content type='html'>This should be standard in Textmate, I don't know why one has to go through so many steps to get it working:&lt;br /&gt;&lt;br /&gt;http://gragusa.wordpress.com/2007/11/11/textmate-emacs-like-indentation-for-r-files/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-2923475087366687714?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/2923475087366687714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=2923475087366687714' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2923475087366687714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2923475087366687714'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2009/04/how-to-get-ess-style-indentation-in.html' title='How to get ESS style indentation in textmate'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-3454478777464049706</id><published>2009-04-23T12:00:00.002+02:00</published><updated>2009-04-23T12:01:07.067+02:00</updated><title type='text'>How to update R bundle in textmate</title><content type='html'>Got this from the web somewhere:&lt;br /&gt;&lt;br /&gt;Just create a script with the following content:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;LC_CTYPE=en_US.UTF-8&lt;br /&gt;SVN=`which svn`&lt;br /&gt;&lt;br /&gt;echo Changing to Bundles directory...&lt;br /&gt;mkdir -p /Library/Application\ Support/TextMate/Bundles&lt;br /&gt;cd /Library/Application\ Support/TextMate/Bundles&lt;br /&gt;&lt;br /&gt;if [ -d /Library/Application\ Support/TextMate/Bundles/R.tmbundle ]; then&lt;br /&gt; echo R bundle already exists - updating...&lt;br /&gt; $SVN up "R.tmbundle"&lt;br /&gt;else&lt;br /&gt; echo Checking out R bundle...&lt;br /&gt; $SVN --username anon --password anon co http://macromates.com/svn/Bundles/trunk/Bundles/R.tmbundle/&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;echo Reloading bundles in TextMate...&lt;br /&gt;osascript -e 'tell app "TextMate" to reload bundles'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-3454478777464049706?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/3454478777464049706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=3454478777464049706' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/3454478777464049706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/3454478777464049706'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2009/04/how-to-update-r-bundle-in-textmate.html' title='How to update R bundle in textmate'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-2497608983262147956</id><published>2007-07-04T21:03:00.000+02:00</published><updated>2007-07-04T21:10:33.389+02:00</updated><title type='text'>Selection bias in journal articles</title><content type='html'>Journals dealing in psycholinguistic research do not publish null results generally, because they are "inconclusive". So it's completely possible that out of 100 experiments, 95 are inconclusive, and 5 are "significant", but that all five are Type I errors. But it's those 5 experiments that will get published.&lt;br /&gt;&lt;br /&gt;The naive rebuttal to this would be that such a situation would only rarely arise. But the non-obvious thing is that rare events do happen. If we published only those five articles, then how would we draw the conclusion that we are not in Type I la la land?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-2497608983262147956?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/2497608983262147956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=2497608983262147956' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2497608983262147956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2497608983262147956'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/07/interesting-statistical-fact.html' title='Selection bias in journal articles'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-5181845839412105746</id><published>2007-04-28T20:46:00.001+02:00</published><updated>2007-04-28T20:46:58.693+02:00</updated><title type='text'>Rlang mailing list</title><content type='html'>Roger Levy has created a possibly useful wiki for exchanging questions about the use of R for language research:&lt;br /&gt;&lt;br /&gt;&lt;a href="https://ling.ucsd.edu/mailman/listinfo.cgi/r-lang"&gt;https://ling.ucsd.edu/mailman/listinfo.cgi/r-lang&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-5181845839412105746?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/5181845839412105746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=5181845839412105746' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/5181845839412105746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/5181845839412105746'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/04/rlang-mailing-list.html' title='Rlang mailing list'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-9005921924047991310</id><published>2007-04-21T10:53:00.000+02:00</published><updated>2007-04-21T10:55:49.091+02:00</updated><title type='text'>How to choose between a multiplicity of sexy models</title><content type='html'>It's websites like this that give model selection such a bad reputation in science:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.modelselection.org/"&gt;http://www.modelselection.org/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-9005921924047991310?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/9005921924047991310/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=9005921924047991310' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/9005921924047991310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/9005921924047991310'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/04/how-to-choose-between-multiplicity-of.html' title='How to choose between a multiplicity of sexy models'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-3203267689942631706</id><published>2007-04-21T09:36:00.001+02:00</published><updated>2007-04-21T09:36:22.248+02:00</updated><title type='text'>Nice introduction to R</title><content type='html'>&lt;a href="http://heather.cs.ucdavis.edu/%7Ematloff/r.html"&gt;http://heather.cs.ucdavis.edu/~matloff/r.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-3203267689942631706?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/3203267689942631706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=3203267689942631706' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/3203267689942631706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/3203267689942631706'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/04/nice-introduction-to-r.html' title='Nice introduction to R'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-6318740858222689747</id><published>2007-04-21T08:34:00.000+02:00</published><updated>2007-04-21T08:35:39.588+02:00</updated><title type='text'>A blog most amazing</title><content type='html'>I just found a most astounding blog via Gelman's blog:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://emotion.inrialpes.fr/%7Edangauthier/blog/"&gt;http://emotion.inrialpes.fr/~dangauthier/blog/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-6318740858222689747?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/6318740858222689747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=6318740858222689747' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/6318740858222689747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/6318740858222689747'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/04/blog-most-amazing.html' title='A blog most amazing'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-5011150006638013048</id><published>2007-04-17T22:42:00.000+02:00</published><updated>2007-04-17T22:44:18.827+02:00</updated><title type='text'>How to extract SEs from lmer fixed effects estimates</title><content type='html'>Extracting fixed effects coefficients from lmer is easy:&lt;br /&gt;&lt;br /&gt;fixef(lmer.fit)&lt;br /&gt;&lt;br /&gt;But extracting SEs of those coefficients is, well, trivial, but you have to know what to do. It's not obvious:&lt;br /&gt;&lt;br /&gt;Vcov &lt;- vcov(lmer.fit, useScale = FALSE)&lt;br /&gt;se &lt;- sqrt(diag(Vcov))&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-5011150006638013048?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/5011150006638013048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=5011150006638013048' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/5011150006638013048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/5011150006638013048'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/04/how-to-extract-ses-from-lmer-fixed.html' title='How to extract SEs from lmer fixed effects estimates'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-2513700106403519883</id><published>2007-02-17T12:48:00.000+01:00</published><updated>2007-02-17T12:50:25.324+01:00</updated><title type='text'>Hmisc: how to increase magnification</title><content type='html'>One non-obvious thing (at least to me) about Hmisc's xYplot function is that to increase magnification or other parameters of a graph component, you have to do the following.&lt;br /&gt;&lt;br /&gt;xlab=list("Condition",cex=2)&lt;br /&gt;&lt;br /&gt;I.e., you have to make a list out of the parameter, and add whatever information you need. This works generally for any of the xYplot parameters.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-2513700106403519883?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/2513700106403519883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=2513700106403519883' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2513700106403519883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2513700106403519883'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/02/hmisc-how-to-increase-magnification.html' title='Hmisc: how to increase magnification'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-3778976758370668937</id><published>2007-01-25T09:12:00.000+01:00</published><updated>2007-01-25T09:16:49.188+01:00</updated><title type='text'>using winbugs with gelman and hill book on intel macs</title><content type='html'>I finally installed Windows on my Mac (a traumatic experience) and finally got the code working. However, the startup instructions on the website of the book did not work for me. I offer a working example for other souls as clueless as myself. The first problem is that the libraries have to be installed manually, they do not install automatically as adverstised. Second, the library R2WinBUGS has to be called explicitly to run the critical bugs command.&lt;br /&gt;Also, if anyone out there is thinking of installing a dual boot environment in Mac in order to install WinBUGS, there is a bug (no pun intended) in the licence installation of WinBUGS. The decode command for the license does not work as advertised, but the license installs anyway.&lt;br /&gt;The working version is here: &lt;a href="http://www.ling.uni-potsdam.de/~vasishth/temp/schools2.R"&gt;http://www.ling.uni-potsdam.de/~vasishth/temp/schools2.R&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-3778976758370668937?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/3778976758370668937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=3778976758370668937' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/3778976758370668937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/3778976758370668937'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/01/using-winbugs-with-gelman-and-hill-book.html' title='using winbugs with gelman and hill book on intel macs'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-4219583750318555179</id><published>2007-01-22T07:35:00.000+01:00</published><updated>2007-01-31T15:37:06.575+01:00</updated><title type='text'>Some expensive lessons I recently learnt about R/Sweave</title><content type='html'>1. If you are going to generate lots of latex tables automatically from an Rnw file, LABEL THEM.&lt;br /&gt;&lt;br /&gt;2. weaver does not work with xYplot. If you are using the Hmisc library, just don't use weaver. I will present a solution here sometime soon.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;The solution: set caching to off (cache=off) in the chunk that loads the Hmisc library and runs the xYplot command(s).  You can turn caching on before and after the chunk, but xYplots need to be computed without caching.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. xtable is unable to identify the fact that an R output line containing, e.g., log(sigma^2), has to be in math-environment in the tex. In Sweave this has the disastrous consequence that the .tex file does not compile. My kludgy solution is to search and replace the .tex file after Sweaving it.&lt;br /&gt;&lt;br /&gt;It's frustrating that such good tools can sometimes be such a pain in the ass. I guess one should be grateful they are there at all.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-4219583750318555179?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/4219583750318555179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=4219583750318555179' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/4219583750318555179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/4219583750318555179'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/01/some-expensive-lessons-i-recently.html' title='Some expensive lessons I recently learnt about R/Sweave'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-2276109133724048080</id><published>2007-01-13T16:13:00.000+01:00</published><updated>2007-01-16T16:56:58.501+01:00</updated><title type='text'>Incomplete Review of Gelman and Hill's Data Analysis using Regression and Multilevel/Hierarchical Models</title><content type='html'>I'm writing this somewhat cranky review as I read the book. Compared to the Pinheiro and Bates book, the examples in this book are initially irritatingly difficult to get working. A major problem with the book is that code involving BUGS runs only on Windows. This excludes readers like me from the action. So I have to wait until I get a Windows machine--but do I really want to start using Windows now? It would have been more helpful if their webpage prominently mentioned this detail (that the book is Windows specific). Had they done that I would probably not have bought it. But now that I have paid for it I am going to read it.&lt;br /&gt;&lt;br /&gt;The website for the book has the data in a pretty disorganized way--why not just make a library? The authors do have a package for arm on the CRAN archive, but it does not install on any OS except Windows (the first R package I have seen with this property in my seven years as an R user). I tried to wget -r the ~gelman/arm/examples directory but ended up with all kinds of other crap in my directory as well, which was annoying. A zip archive could not hurt.&lt;br /&gt;&lt;br /&gt;Chapters 1-3&lt;br /&gt;&lt;br /&gt;I did not get a huge amount out of these chapters that was deeply interesting, but it is a good intro for newcomers to regression.&lt;br /&gt;&lt;br /&gt;The code for the example in chapter 3  doesn't work on non-windows machines. &lt;a href="http://www.ling.uni-potsdam.de/%7Evasishth/armr/ch3.R"&gt;Here&lt;/a&gt; is a working version.&lt;br /&gt;&lt;br /&gt;Chapter 4&lt;br /&gt;&lt;br /&gt;The book becomes more and more exciting from about this point onwards. Only one grouse:&lt;br /&gt;&lt;br /&gt;Chapter 4 has some principles doing carrying out regression for prediction (section 4.6) but it is far from clear where they come from and the principles have a cookbookey feel (do this, don't do that, without explaining why). It would have been better if the authors had taught the reader to reason about the problem (surely those are the real principles, and the presented principles the consequences of the thought process generated by those principles).&lt;br /&gt;&lt;br /&gt;[to be continued]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-2276109133724048080?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.stat.columbia.edu/~gelman/arm/' title='Incomplete Review of Gelman and Hill&apos;s Data Analysis using Regression and Multilevel/Hierarchical Models'/><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/2276109133724048080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=2276109133724048080' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2276109133724048080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/2276109133724048080'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/01/incomplete-review-of-gelman-and-hills.html' title='Incomplete Review of Gelman and Hill&apos;s Data Analysis using Regression and Multilevel/Hierarchical Models'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-560334591420212910</id><published>2007-01-04T07:27:00.000+01:00</published><updated>2007-01-29T08:42:09.196+01:00</updated><title type='text'>Great statistics courses that use R</title><content type='html'>1. &lt;a href="http://www.unc.edu/courses/2006spring/ecol/145/001/docs/lectures.htm"&gt;http://www.unc.edu/courses/2006spring/ecol/145/001/docs/lectures.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. &lt;a href="http://www.stat.washington.edu/vanduijn/560/"&gt;http://www.stat.washington.edu/vanduijn/560/&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Statistical learning theory:&lt;br /&gt;&lt;br /&gt;3. &lt;a href="http://www.ece.rice.edu/%7Efk1/classes/ELEC697.htm"&gt;http://www.ece.rice.edu/~fk1/classes/ELEC697.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4. &lt;a href="http://www.ulb.ac.be/di/map/gbonte/Stat104.html"&gt;http://www.ulb.ac.be/di/map/gbonte/Stat104.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-560334591420212910?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/560334591420212910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=560334591420212910' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/560334591420212910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/560334591420212910'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/01/great-statistics-courses-that-use-r.html' title='Great statistics courses that use R'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-8681620314396483303</id><published>2007-01-03T13:26:00.000+01:00</published><updated>2007-01-03T13:41:31.030+01:00</updated><title type='text'>Null hypotheses, significance testing and all that jazz</title><content type='html'>Some amazing articles I've recently read in my ample spare time:&lt;br /&gt;&lt;br /&gt;1. &lt;strong&gt;The Insignificance of Null Hypothesis Significance Testing&lt;/strong&gt;&lt;br /&gt;     Jeff Gill&lt;br /&gt; &lt;em&gt;Political Research Quarterly&lt;/em&gt;,        Vol. 52,        No. 3 (Sep., 1999),                     pp. 647-674&lt;br /&gt;doi:10.2307/449153&lt;br /&gt;&lt;br /&gt;2. Andrew Gelman's &lt;a href="www.stat.columbia.edu/%7Egelman/research/unpublished/signifrev.pdf"&gt;article&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. And this one: &lt;a href="http://www.npwrc.usgs.gov/resource/methods/statsig/index.htm"&gt;http://www.npwrc.usgs.gov/resource/methods/statsig/index.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4. Bowers and Gelman on &lt;a href="http://www-personal.umich.edu/%7Ejwbowers/PAPERS/bowersdrakesource.tar.gz"&gt;Exploratory Data Analysis with Hierarchical Linear Models (AKA Multilevel models)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Suitably stunned into silence, the reader may then have the following practical question: how to present one's HPD intervals in a journal, and what else to present?&lt;br /&gt;&lt;br /&gt;&lt;a href="http://tolstoy.newcastle.edu.au/R/help/06/08/32409.html"&gt;Here&lt;/a&gt;'s an answer from Doug Bates.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-8681620314396483303?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/8681620314396483303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=8681620314396483303' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/8681620314396483303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/8681620314396483303'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/01/null-hypotheses-significance-testing.html' title='Null hypotheses, significance testing and all that jazz'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-317287815914598980</id><published>2007-01-02T21:35:00.000+01:00</published><updated>2007-01-02T21:39:02.752+01:00</updated><title type='text'>Great article: EDA for HLMs</title><content type='html'>There's an interesting paper I just read that comes with Sweave/R code that the article uses:&lt;br /&gt;&lt;br /&gt; &lt;a href="http://www-personal.umich.edu/%7Ejwbowers/papers.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"&gt;http://www-personal.umich.edu/&lt;wbr&gt;~jwbowers/papers.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It's called EDA for HLMs, and advocates an exploratory data analysis when trying to understand data (as opposed to blindly searching for a yes/no answer, did significance fall below 0.05). In psycholinguistics, we are still a long way from conventional plodding along well beaten paths.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-317287815914598980?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/317287815914598980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=317287815914598980' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/317287815914598980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/317287815914598980'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/01/great-article-eda-for-hlms.html' title='Great article: EDA for HLMs'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-8414724058393701652</id><published>2007-01-02T09:48:00.000+01:00</published><updated>2007-01-05T12:46:16.653+01:00</updated><title type='text'>Installing weaver</title><content type='html'>It is not immediately obvious how one can install weaver (thanks to balajis for telling me about it--see his comment to the Sweave speed issues).&lt;br /&gt;&lt;br /&gt;Do the following as superuser for a system-wide install:&lt;br /&gt;&lt;br /&gt;1. install digest (from CRAN)&lt;br /&gt;2. install codetools from http://bioconductor.org/packages/1.9/omegahat/html/codetools.html&lt;br /&gt;3. install weaver from http://www.bioconductor.org/packages/1.9/bioc/html/weaver.html&lt;br /&gt;&lt;br /&gt;A clunky way to install on Mac OS X and Linux is: as superuser do&lt;br /&gt;&lt;br /&gt;R CMD INSTALL packagetarball&lt;br /&gt;&lt;br /&gt;I'll add information on how to use it later, but one can always consult the weaver manual/vignette.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-8414724058393701652?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/8414724058393701652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=8414724058393701652' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/8414724058393701652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/8414724058393701652'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/01/installing-weaver.html' title='Installing weaver'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-8019204656424217977</id><published>2007-01-02T09:38:00.000+01:00</published><updated>2007-01-02T09:47:57.650+01:00</updated><title type='text'>How I maintain my data</title><content type='html'>As soon as you have a lot of experiments floating around, you tend to get a proliferation of code and data files. Usually, chaos ensues. If someone asks you for the data of some experiment you published, you can (a) ignore the request (this is the most economical but also the least ethical response) (b) send them  they can realistically use.  This post is about how to carry out (b).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Suppose I have a collection of data and R code that I will cryptically call intml.&lt;br /&gt;&lt;br /&gt;1. package.skeleton("intml")&lt;br /&gt;This will create some directories (see previous post)&lt;br /&gt;2. now add the data to the data directory&lt;br /&gt;3. add the .Rnw file you used to analyze the data as a vignette&lt;br /&gt;&lt;br /&gt;Build a package as indicated in the last post, and send it to the person who asked for it. Or make it available on CRAN.&lt;br /&gt;&lt;br /&gt;It's simple and it enforces a certain self-discipline. Nothing like the knowledge that anyone can read your code to force you to write it properly :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-8019204656424217977?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/8019204656424217977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=8019204656424217977' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/8019204656424217977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/8019204656424217977'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/01/how-i-maintain-my-data.html' title='How I maintain my data'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-8989165232039797404</id><published>2007-01-01T17:12:00.000+01:00</published><updated>2007-01-01T17:14:50.323+01:00</updated><title type='text'>Putting together a library</title><content type='html'>The Introduction to R and other documentation CRAN tells you how to build a library. But it is remarkably hard to find a step-by-step how-to for packaging together an R library. &lt;a href="http://ace.acadiau.ca/math/ACMMaC/howtos/building_R_libs.html"&gt;Here&lt;/a&gt; is a good one.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-8989165232039797404?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www2.blogger.com/img/gl.link.gif' title='Putting together a library'/><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/8989165232039797404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=8989165232039797404' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/8989165232039797404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/8989165232039797404'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2007/01/putting-together-library.html' title='Putting together a library'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-116599056429908703</id><published>2006-12-13T07:05:00.000+01:00</published><updated>2006-12-13T07:23:47.726+01:00</updated><title type='text'>Sweave for complex projects (speed issues)</title><content type='html'>One problem my colleagues and I face is that our statistical analysis projects quickly become very complex, and recompiling Sweave becomes a slow process each time I update the code or just run it again.&lt;br /&gt;&lt;br /&gt;I am slowly compiling a list of available solutions to this problem (the real issues are lack of speed, lack of modularity):&lt;br /&gt;&lt;br /&gt;Here is what I have found so far:&lt;br /&gt;&lt;br /&gt;1. Use \SweaveInput for including modular code&lt;br /&gt;2. Use makefiles a la Deepayan Sarkar: &lt;br /&gt;&lt;a href="http://archives.devshed.com/forums/development-94/sweave-r-and-complex-latex-projects-2081686.html"&gt;here&lt;/a&gt;&lt;br /&gt;3. Another solution that relates to the present problem:&lt;br /&gt;&lt;a href="http://www.schussman.com/article/1392/sweave-and-complex-projects"&gt;here&lt;/a&gt;&lt;br /&gt;4. Finally, I think one should make vignettes/packages out of one's research projects so that the whole Rnw file does not need to be compiled--the needed objects can be made visible by doing something like:&lt;br /&gt;&lt;br /&gt;library(mydata)&lt;br /&gt;&lt;br /&gt;There is a bit of work involved in making the package, but the payoff is tremendous. The R documentation provides details on how to build packages, but maybe I will put a simple example here.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-116599056429908703?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/116599056429908703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=116599056429908703' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/116599056429908703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/116599056429908703'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2006/12/sweave-for-complex-projects-speed.html' title='Sweave for complex projects (speed issues)'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-115831995194124564</id><published>2006-09-15T13:28:00.000+02:00</published><updated>2006-09-15T13:32:31.980+02:00</updated><title type='text'>How to compute min-F</title><content type='html'>Here's how to compute minF in R. You have to give the function the F1 and F2 values and the denominator dfs for each: minf(f1,f2,n1,n2).&lt;br /&gt;&lt;br /&gt;minf &lt;- function(f1,f2,n1,n2){&lt;br /&gt; fprime &lt;- (f1*f2)/(f1+f2)&lt;br /&gt; n &lt;- round(((f1+f2)*(f1+f2))/(((f1*f1)/n2)+((f2*f2)/n1)))&lt;br /&gt; return(paste("minF(",n,")=",round(fprime,digits=2),", crit=",round(qf(.95,1,n)),sep=""))&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;If there are any mistakes here, corrections are welcome.&lt;br /&gt;&lt;br /&gt;References: Raaijmakers' 1999 and 2003 articles.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-115831995194124564?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/115831995194124564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=115831995194124564' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/115831995194124564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/115831995194124564'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2006/09/how-to-compute-min-f.html' title='How to compute min-F'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21621108.post-113981154192427986</id><published>2006-02-13T07:06:00.000+01:00</published><updated>2006-02-13T07:28:21.716+01:00</updated><title type='text'>Sweave introduction</title><content type='html'>&lt;a href="http://www.ci.tuwien.ac.at/%7Eleisch/Sweave/"&gt;Sweave&lt;/a&gt; is a package that comes with &lt;a href="http://cran.r-project.org/"&gt;R&lt;/a&gt;, and can be used to interleave LaTeX and R code.  Here's how I use it:&lt;br /&gt;&lt;br /&gt;(I'm assuming you've got R installed on your machine.)&lt;br /&gt;&lt;br /&gt;1. Download the bash script Sweave.sh from &lt;a href="http://www.bfro.uni-lj.si/MR/ggorjan/software/shell/index.html"&gt;here&lt;/a&gt;. Install it in your bin directory, and be sure to change the first line to reflect the location of your bash.&lt;br /&gt;&lt;br /&gt;2. Download the file &lt;a href="http://www.ling.uni-potsdam.de/%7Evasishth/Sweave-test-1.Rnw"&gt;Sweave-test-1.Rnw&lt;/a&gt; into a temporary directory.&lt;br /&gt;&lt;br /&gt;3. cd to that directory and now run the script on this file:&lt;br /&gt;Sweave.sh Sweave-test-1.Rnw.  If all goes well, you have a .tex file Sweave-test-1.tex. &lt;br /&gt;&lt;br /&gt;4. Compile the .tex file in whatever way is usual for you. The Sweave &lt;a href="http://www.ci.tuwien.ac.at/%7Eleisch/Sweave/FAQ.html"&gt;FAQ&lt;/a&gt; is a must-read.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21621108-113981154192427986?l=vasishth-statistics.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vasishth-statistics.blogspot.com/feeds/113981154192427986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21621108&amp;postID=113981154192427986' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/113981154192427986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21621108/posts/default/113981154192427986'/><link rel='alternate' type='text/html' href='http://vasishth-statistics.blogspot.com/2006/02/sweave-introduction.html' title='Sweave introduction'/><author><name>Shravan Vasishth</name><uri>http://www.blogger.com/profile/13453158922142934436</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://2.bp.blogspot.com/_31yeppkNE08/TKnR3hQsFgI/AAAAAAAAASY/Pgcjv8RgptE/S220/svnew.jpg'/></author><thr:total>0</thr:total></entry></feed>
