<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Statisfaction</title>
	<atom:link href="http://statisfaction.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://statisfaction.wordpress.com</link>
	<description>I can&#039;t get no</description>
	<lastBuildDate>Fri, 24 Feb 2012 15:55:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='statisfaction.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/c97e6139e1af9c4d7e7fb0cad771e3eb?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Statisfaction</title>
		<link>http://statisfaction.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://statisfaction.wordpress.com/osd.xml" title="Statisfaction" />
	<atom:link rel='hub' href='http://statisfaction.wordpress.com/?pushpress=hub'/>
		<item>
		<title>RIP library.nu</title>
		<link>http://statisfaction.wordpress.com/2012/02/23/rip-library-nu/</link>
		<comments>http://statisfaction.wordpress.com/2012/02/23/rip-library-nu/#comments</comments>
		<pubDate>Thu, 23 Feb 2012 04:54:13 +0000</pubDate>
		<dc:creator>Pierre Jacob</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://statisfaction.wordpress.com/?p=1893</guid>
		<description><![CDATA[Hey, I needed to read a book, to learn something new, isn&#8217;t that exciting, and I discovered that library.nu was dead. Here you&#8217;ll find an excellent post about it, see also the comments for an interesting discussion. It&#8217;s stupid and really sad, but bookfi dot org. So I guess it&#8217;s OK. Pierre<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1893&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" src="http://www.sd25.org/~RStein/stein/page47/files/great-chicago-fire.jpg" alt="" width="480" height="319" /></p>
<p>Hey,</p>
<p>I needed to read a book, to learn something new, isn&#8217;t that exciting, and I discovered that library.nu was dead. <a href="http://kafila.org/2012/02/19/library-nu-r-i-p/">Here you&#8217;ll find an excellent post about it</a>, see also the comments for an interesting discussion.</p>
<p>It&#8217;s stupid and really sad, but <strong>bookfi dot org</strong>. So I guess it&#8217;s OK.</p>
<p>Pierre</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/statisfaction.wordpress.com/1893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/statisfaction.wordpress.com/1893/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/statisfaction.wordpress.com/1893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/statisfaction.wordpress.com/1893/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/statisfaction.wordpress.com/1893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/statisfaction.wordpress.com/1893/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/statisfaction.wordpress.com/1893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/statisfaction.wordpress.com/1893/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/statisfaction.wordpress.com/1893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/statisfaction.wordpress.com/1893/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/statisfaction.wordpress.com/1893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/statisfaction.wordpress.com/1893/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/statisfaction.wordpress.com/1893/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/statisfaction.wordpress.com/1893/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1893&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://statisfaction.wordpress.com/2012/02/23/rip-library-nu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd7b6e7af1a2d912dcf56f92c4698148?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pierrejacob</media:title>
		</media:content>

		<media:content url="http://www.sd25.org/~RStein/stein/page47/files/great-chicago-fire.jpg" medium="image" />
	</item>
		<item>
		<title>Valentine Day and lonely people in France</title>
		<link>http://statisfaction.wordpress.com/2012/02/14/valentine-day-and-lonely-people-in-france/</link>
		<comments>http://statisfaction.wordpress.com/2012/02/14/valentine-day-and-lonely-people-in-france/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 20:48:04 +0000</pubDate>
		<dc:creator>Julyan Arbel</dc:creator>
				<category><![CDATA[Dataset]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://statisfaction.wordpress.com/?p=1883</guid>
		<description><![CDATA[Insee published recently a paper (in French), well in line with the Valentine Day, which characterizes people living alone or in couple by socio-professional category, along with the data. Between 1990 and 2008 (two population surveys), the proportion of people living alone mostly increased for people under 60. After 60, 38% of women live alone, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1883&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Insee published recently a <a href="http://insee.fr/fr/ffc/ipweb/ip1392/ip1392.pdf">paper</a> (in French), well in line with the Valentine Day, which characterizes people living alone or in couple by socio-professional category, along with the <a href="http://insee.fr/fr/ffc/ipweb/ip1392/ip1392.xls">data</a>.</p>
<p>Between 1990 and 2008 (two population surveys), the proportion of people living alone mostly increased for people under 60. After 60, 38% of women live alone, for only 17% of men,  because women are married to older men, and live longer than them, in average. See that proportion by age:</p>
<p><a href="http://statisfaction.files.wordpress.com/2012/02/prop.png"><img class="aligncenter size-medium wp-image-1886" title="prop" src="http://statisfaction.files.wordpress.com/2012/02/prop1.png?w=400&#038;h=276" alt="" width="400" height="276" /></a>Spatially, there is a kind of South/North opposition. During the working life, lonely people live in the South (left), while lonely retired people live in the North (right), with an exception for Île-de-France (Paris) with a high proportion whatever the age:</p>
<p><a href="http://statisfaction.files.wordpress.com/2012/02/france.png"><img class="aligncenter size-medium wp-image-1887" title="france" src="http://statisfaction.files.wordpress.com/2012/02/france1.png?w=400&#038;h=167" alt="" width="400" height="167" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/statisfaction.wordpress.com/1883/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/statisfaction.wordpress.com/1883/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/statisfaction.wordpress.com/1883/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/statisfaction.wordpress.com/1883/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/statisfaction.wordpress.com/1883/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/statisfaction.wordpress.com/1883/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/statisfaction.wordpress.com/1883/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/statisfaction.wordpress.com/1883/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/statisfaction.wordpress.com/1883/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/statisfaction.wordpress.com/1883/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/statisfaction.wordpress.com/1883/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/statisfaction.wordpress.com/1883/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/statisfaction.wordpress.com/1883/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/statisfaction.wordpress.com/1883/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1883&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://statisfaction.wordpress.com/2012/02/14/valentine-day-and-lonely-people-in-france/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8be39edc1e697c36b0abea16f367c4a0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">julyanarbel</media:title>
		</media:content>

		<media:content url="http://statisfaction.files.wordpress.com/2012/02/prop1.png?w=400" medium="image">
			<media:title type="html">prop</media:title>
		</media:content>

		<media:content url="http://statisfaction.files.wordpress.com/2012/02/france1.png?w=400" medium="image">
			<media:title type="html">france</media:title>
		</media:content>
	</item>
		<item>
		<title>Next stop: Sydney</title>
		<link>http://statisfaction.wordpress.com/2012/02/11/next-stop-sydney/</link>
		<comments>http://statisfaction.wordpress.com/2012/02/11/next-stop-sydney/#comments</comments>
		<pubDate>Sat, 11 Feb 2012 09:01:27 +0000</pubDate>
		<dc:creator>Pierre Jacob</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Seminar/Conference]]></category>

		<guid isPermaLink="false">http://statisfaction.wordpress.com/?p=1875</guid>
		<description><![CDATA[Hey hey, After a very interesting week in the Department of Statistics and Applied Probability at the National University of Singapore, where I&#8217;ve started some projects about the mathematics behind Sequential Monte Carlo methods with the expert Ajay Jasra, I&#8217;m heading towards Sydney, Australia. I love my life at the moment! Tip for the travelers among you: ScribTeX [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1875&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-medium wp-image-1876" title="" src="http://statisfaction.files.wordpress.com/2012/02/kangaroo.jpg?w=400&#038;h=288" alt="" width="400" height="288" /></p>
<p>Hey hey,</p>
<p>After a very interesting week in the <a href="http://www.stat.nus.edu.sg/opencms/">Department of Statistics and Applied Probability at the National University of Singapore</a>, where I&#8217;ve started some projects about the mathematics behind <a href="http://en.wikipedia.org/wiki/Particle_filter">Sequential Monte Carlo methods</a> with the expert <a href="http://www2.ic.ac.uk/~aj2/">Ajay Jasra</a>, I&#8217;m heading towards Sydney, Australia. I love my life at the moment!</p>
<p>Tip for the travelers among you: <a href="http://www.scribtex.com/">ScribTeX </a>is a very convenient website if you travel without a laptop. You can type LaTeX documents online and also compile them, and see the resulting PDF. They seem to have all the necessary packages and I could easily type beamer presentations. The editor is a bit simple but it could still save your life!</p>
<p>Speaking of slides, I will be talking next Thursday at the <a href="http://www.mcqmc2012.unsw.edu.au/">MCQMC conference</a>. My office mate <a href="http://www.crest.fr/ses.php?user=3147">Christian Schaefer</a> will be there too if you wish to speak to an expert in <a href="http://arxiv.org/abs/1101.6037">SMC on binary spaces</a>. As for me, I&#8217;ll be talking about the properties of the stochastic schedule in the Wang-Landau algorithm, linked with <a href="http://arxiv.org/abs/1110.4025">our recent article</a> with <a href="http://www.ceremade.dauphine.fr/~ryder/">Robin Ryder</a>.</p>
<p>Then on February 20th, I&#8217;ll give an informal talk at the <a href="http://www.ling.mq.edu.au/clas/index.htm">Centre for Language Science in Macquarie University</a>. That&#8217;s quite random, yes. Many thanks to <a href="http://web.science.mq.edu.au/~mjohnson/">Mark Johnson</a> who contacted me through the blog! There I&#8217;ll speak about recent advances in computational Bayesian statistics. These linguists already use <a href="http://aclweb.org/anthology-new/U/U11/U11-1004.pdf">SMC for word segmentation</a> and show interest in the latest advances. I&#8217;ll hence talk about PMCMC/SMC^2 and also ABC.</p>
<p>Bye bye.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/statisfaction.wordpress.com/1875/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/statisfaction.wordpress.com/1875/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/statisfaction.wordpress.com/1875/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/statisfaction.wordpress.com/1875/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/statisfaction.wordpress.com/1875/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/statisfaction.wordpress.com/1875/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/statisfaction.wordpress.com/1875/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/statisfaction.wordpress.com/1875/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/statisfaction.wordpress.com/1875/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/statisfaction.wordpress.com/1875/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/statisfaction.wordpress.com/1875/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/statisfaction.wordpress.com/1875/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/statisfaction.wordpress.com/1875/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/statisfaction.wordpress.com/1875/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1875&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://statisfaction.wordpress.com/2012/02/11/next-stop-sydney/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd7b6e7af1a2d912dcf56f92c4698148?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pierrejacob</media:title>
		</media:content>

		<media:content url="http://statisfaction.files.wordpress.com/2012/02/kangaroo.jpg?w=400" medium="image" />
	</item>
		<item>
		<title>Daily casualties in Syria</title>
		<link>http://statisfaction.wordpress.com/2012/02/09/daily-casualties-in-syria/</link>
		<comments>http://statisfaction.wordpress.com/2012/02/09/daily-casualties-in-syria/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 17:42:57 +0000</pubDate>
		<dc:creator>Julyan Arbel</dc:creator>
				<category><![CDATA[Dataset]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[ggplot2]]></category>
		<category><![CDATA[Syria]]></category>

		<guid isPermaLink="false">http://statisfaction.wordpress.com/?p=1838</guid>
		<description><![CDATA[Every new day brings its statistics of new deaths in Syria&#8230; Here is an attempt to learn about the Syrian uprising by the figures. Data vary among sources: the Syrian opposition provides the number of casualties by day (here on Dropbox), updated on 8 February 2012, with a total exceeding 8 000. We note first [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1838&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Every new day brings its statistics of new deaths in Syria&#8230; Here is an attempt to learn about the <a href="http://en.wikipedia.org/wiki/2011%E2%80%932012_Syrian_uprising">Syrian uprising</a> by the figures. Data <a href="http://en.wikipedia.org/wiki/2011-2012_Syrian_uprising#Deaths">vary</a> among sources: the Syrian opposition <a href="http://translate.googleusercontent.com/translate_c?hl=en&amp;ie=UTF8&amp;prev=_t&amp;rurl=translate.google.com&amp;sl=ar&amp;tl=en&amp;twu=1&amp;u=http://syrianshuhada.com/default.asp%3Fa%3Dst%26st%3D3&amp;usg=ALkJrhh4RAnEeZG63kbpNZZAgFKOihbKbg">provides</a> the number of casualties by day (<a href="http://dl.dropbox.com/u/1391912/Blog%20statisfaction/data/syria.txt">here</a> on Dropbox), updated on 8 February 2012, with a total exceeding 8 000.</p>
<p>We note first that the attacks accelerate, as the cumulated graph is mostly convex (click to enlarge):<a href="http://statisfaction.files.wordpress.com/2012/02/total_big.png"><img class="aligncenter" title="total" src="http://statisfaction.files.wordpress.com/2012/02/total.png?w=350&#038;h=300" alt="" width="350" height="300" /></a></p>
<p>Plotting the numbers by day shows the bloody situation of  <a href="http://en.wikipedia.org/wiki/Friday#Religious_observances">Fridays</a>, a gathering day in the Muslin calendar. This point was especially true at the beginning of the uprising, but lately any other day can be equally deadly:</p>
<p style="text-align:center;"><a href="http://statisfaction.files.wordpress.com/2012/02/day_big2.png"><img class="aligncenter  wp-image-1868" title="day" src="http://statisfaction.files.wordpress.com/2012/02/day1.png?w=550&#038;h=300" alt="" width="550" height="300" /></a></p>
<p style="text-align:left;">There are almost twice as much deaths on Fridays as any other day in average:<a href="http://statisfaction.files.wordpress.com/2012/02/total_big.png"><br />
</a><a href="http://statisfaction.files.wordpress.com/2012/02/totalday_big.png"><img class="aligncenter  wp-image-1854" title="totalday" src="http://statisfaction.files.wordpress.com/2012/02/totalday.png?w=350&#038;h=300" alt="" width="350" height="300" /></a>Here are boxplots for the logarithm of daily casualties by day of the week:</p>
<p style="text-align:left;"><a href="http://statisfaction.files.wordpress.com/2012/02/box_big.png"><img class="aligncenter size-full wp-image-1871" title="box" src="http://statisfaction.files.wordpress.com/2012/02/box.png?w=720" alt=""   /></a></p>
<p style="text-align:left;">and their density estimates, first coloured by day of the week, then by Friday vs rest of the week:</p>
<p style="text-align:left;"><a href="http://statisfaction.files.wordpress.com/2012/02/den_big.png"><img title="den" src="http://statisfaction.files.wordpress.com/2012/02/den.png?w=350&#038;h=300" alt="" width="350" height="300" /></a><a href="http://statisfaction.files.wordpress.com/2012/02/dens_big.png"><img title="dens" src="http://statisfaction.files.wordpress.com/2012/02/dens1.png?w=350&#038;h=300" alt="" width="350" height="300" /></a></p>
<p style="text-align:left;">Here is the code (with clumsy parts for fitting the data frames for ggplot, do not hesitate to comment on it)</p>
<div style="overflow:auto;">
<div class="geshifilter">
<pre class="r geshifilter-R" style="font-family:monospace;"><a href="http://inside-r.org/r-doc/base/library"><span style="color:#003399;font-weight:bold;">library</span></a><span style="color:#009900;">(</span><a href="http://inside-r.org/packages/cran/ggplot2">ggplot2</a><span style="color:#009900;">)</span>
input=<a href="http://inside-r.org/r-doc/utils/read.csv"><span style="color:#003399;font-weight:bold;">read.csv</span></a><span style="color:#009900;">(</span><span style="color:#0000ff;">"http://dl.dropbox.com/u/1391912/Blog%20statisfaction/data/syria.txt"</span><span style="color:#339933;">,</span>
               sep=<span style="color:#0000ff;">"<span style="color:#000099;font-weight:bold;">\t</span>"</span><span style="color:#339933;">,</span>header=<span style="color:#000000;font-weight:bold;">TRUE</span><span style="color:#339933;">,</span>stringsAsFactors=<span style="color:#000000;font-weight:bold;">FALSE</span><span style="color:#009900;">)</span>
input$LogicalFriday=<a href="http://inside-r.org/r-doc/base/factor"><span style="color:#003399;font-weight:bold;">factor</span></a><span style="color:#009900;">(</span>input$WeekDay ==<span style="color:#0000ff;">"Friday"</span><span style="color:#339933;">,</span><a href="http://inside-r.org/r-doc/base/levels"><span style="color:#003399;font-weight:bold;">levels</span></a> = <a href="http://inside-r.org/r-doc/base/c"><span style="color:#003399;font-weight:bold;">c</span></a><span style="color:#009900;">(</span><span style="color:#000000;font-weight:bold;">FALSE</span><span style="color:#339933;">,</span> <span style="color:#000000;font-weight:bold;">TRUE</span><span style="color:#009900;">)</span><span style="color:#339933;">,</span>
                           <a href="http://inside-r.org/r-doc/base/labels"><span style="color:#003399;font-weight:bold;">labels</span></a> = <a href="http://inside-r.org/r-doc/base/c"><span style="color:#003399;font-weight:bold;">c</span></a><span style="color:#009900;">(</span><span style="color:#0000ff;">"Not Friday"</span><span style="color:#339933;">,</span> <span style="color:#0000ff;">"Friday"</span><span style="color:#009900;">)</span><span style="color:#009900;">)</span>
input$Date=<a href="http://inside-r.org/r-doc/base/as.Date"><span style="color:#003399;font-weight:bold;">as.Date</span></a><span style="color:#009900;">(</span>input$History<span style="color:#339933;">,</span><span style="color:#0000ff;">"%d/%m/%Y"</span><span style="color:#009900;">)</span>
input$WeekDays=<a href="http://inside-r.org/r-doc/base/factor"><span style="color:#003399;font-weight:bold;">factor</span></a><span style="color:#009900;">(</span>input$WeekDay<span style="color:#339933;">,</span>
                      <a href="http://inside-r.org/r-doc/base/levels"><span style="color:#003399;font-weight:bold;">levels</span></a>=<a href="http://inside-r.org/r-doc/base/unique"><span style="color:#003399;font-weight:bold;">unique</span></a><span style="color:#009900;">(</span><a href="http://inside-r.org/r-doc/base/as.character"><span style="color:#003399;font-weight:bold;">as.character</span></a><span style="color:#009900;">(</span>input$WeekDay<span style="color:#009900;">[</span><span style="color:#cc66cc;">7</span>:<span style="color:#cc66cc;">13</span><span style="color:#009900;">]</span><span style="color:#009900;">)</span><span style="color:#009900;">)</span><span style="color:#009900;">)</span> <span style="color:#666666;font-style:italic;"># trick to sort the legend</span>
qplot<span style="color:#009900;">(</span>x=<a href="http://inside-r.org/packages/cran/date">Date</a><span style="color:#339933;">,</span>y=<a href="http://inside-r.org/r-doc/base/cumsum"><span style="color:#003399;font-weight:bold;">cumsum</span></a><span style="color:#009900;">(</span>Number<span style="color:#009900;">)</span><span style="color:#339933;">,</span> <a href="http://inside-r.org/r-doc/utils/data"><span style="color:#003399;font-weight:bold;">data</span></a>=input<span style="color:#339933;">,</span> geom=<span style="color:#0000ff;">"line"</span><span style="color:#339933;">,</span>color=<a href="http://inside-r.org/r-doc/base/I"><span style="color:#003399;font-weight:bold;">I</span></a><span style="color:#009900;">(</span><span style="color:#0000ff;">"red"</span><span style="color:#009900;">)</span><span style="color:#339933;">,</span>xlab=<span style="color:#0000ff;">""</span><span style="color:#339933;">,</span>ylab=<span style="color:#0000ff;">""</span><span style="color:#339933;">,</span>lwd=<a href="http://inside-r.org/r-doc/base/I"><span style="color:#003399;font-weight:bold;">I</span></a><span style="color:#009900;">(</span><span style="color:#cc66cc;">1</span><span style="color:#009900;">)</span><span style="color:#009900;">)</span>
qplot<span style="color:#009900;">(</span>x=<a href="http://inside-r.org/r-doc/base/as.factor"><span style="color:#003399;font-weight:bold;">as.factor</span></a><span style="color:#009900;">(</span><a href="http://inside-r.org/packages/cran/date">Date</a><span style="color:#009900;">)</span><span style="color:#339933;">,</span>y=Number<span style="color:#339933;">,</span> <a href="http://inside-r.org/r-doc/utils/data"><span style="color:#003399;font-weight:bold;">data</span></a>=input<span style="color:#339933;">,</span> geom=<span style="color:#0000ff;">"bar"</span><span style="color:#339933;">,</span>fill=LogicalFriday<span style="color:#339933;">,</span>xlab=<span style="color:#0000ff;">""</span><span style="color:#339933;">,</span>ylab=<span style="color:#0000ff;">""</span><span style="color:#009900;">)</span>
qplot<span style="color:#009900;">(</span><a href="http://inside-r.org/r-doc/base/log"><span style="color:#003399;font-weight:bold;">log</span></a><span style="color:#009900;">(</span>Number+<span style="color:#cc66cc;">1</span><span style="color:#009900;">)</span><span style="color:#339933;">,</span> <a href="http://inside-r.org/r-doc/utils/data"><span style="color:#003399;font-weight:bold;">data</span></a>=input<span style="color:#339933;">,</span> geom=<span style="color:#0000ff;">"density"</span><span style="color:#339933;">,</span>fill=LogicalFriday<span style="color:#339933;">,</span>xlab=<span style="color:#0000ff;">""</span><span style="color:#339933;">,</span>ylab=<span style="color:#0000ff;">""</span><span style="color:#339933;">,</span>alpha=<a href="http://inside-r.org/r-doc/base/I"><span style="color:#003399;font-weight:bold;">I</span></a><span style="color:#009900;">(</span><span style="color:#cc66cc;">.2</span><span style="color:#009900;">)</span><span style="color:#009900;">)</span>
qplot<span style="color:#009900;">(</span><a href="http://inside-r.org/r-doc/base/log"><span style="color:#003399;font-weight:bold;">log</span></a><span style="color:#009900;">(</span>Number+<span style="color:#cc66cc;">1</span><span style="color:#009900;">)</span><span style="color:#339933;">,</span> <a href="http://inside-r.org/r-doc/utils/data"><span style="color:#003399;font-weight:bold;">data</span></a>=input<span style="color:#339933;">,</span> geom=<span style="color:#0000ff;">"density"</span><span style="color:#339933;">,</span>fill=WeekDay<span style="color:#339933;">,</span>xlab=<span style="color:#0000ff;">""</span><span style="color:#339933;">,</span>ylab=<span style="color:#0000ff;">""</span><span style="color:#339933;">,</span>alpha=<a href="http://inside-r.org/r-doc/base/I"><span style="color:#003399;font-weight:bold;">I</span></a><span style="color:#009900;">(</span><span style="color:#cc66cc;">.2</span><span style="color:#009900;">)</span><span style="color:#009900;">)</span>
qplot<span style="color:#009900;">(</span>WeekDays<span style="color:#339933;">,</span><a href="http://inside-r.org/r-doc/base/log"><span style="color:#003399;font-weight:bold;">log</span></a><span style="color:#009900;">(</span>Number+<span style="color:#cc66cc;">1</span><span style="color:#009900;">)</span><span style="color:#339933;">,</span><a href="http://inside-r.org/r-doc/utils/data"><span style="color:#003399;font-weight:bold;">data</span></a>=input<span style="color:#339933;">,</span>geom=<span style="color:#0000ff;">"boxplot"</span><span style="color:#339933;">,</span>xlab=<span style="color:#0000ff;">""</span><span style="color:#339933;">,</span>ylab=<span style="color:#0000ff;">""</span><span style="color:#339933;">,</span>colour=WeekDays<span style="color:#009900;">)</span></pre>
</div>
</div>
<p><a title="Created by Pretty R at inside-R.org" href="http://www.inside-r.org/pretty-r">Created by Pretty R at inside-R.org</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/statisfaction.wordpress.com/1838/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/statisfaction.wordpress.com/1838/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/statisfaction.wordpress.com/1838/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/statisfaction.wordpress.com/1838/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/statisfaction.wordpress.com/1838/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/statisfaction.wordpress.com/1838/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/statisfaction.wordpress.com/1838/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/statisfaction.wordpress.com/1838/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/statisfaction.wordpress.com/1838/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/statisfaction.wordpress.com/1838/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/statisfaction.wordpress.com/1838/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/statisfaction.wordpress.com/1838/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/statisfaction.wordpress.com/1838/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/statisfaction.wordpress.com/1838/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1838&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://statisfaction.wordpress.com/2012/02/09/daily-casualties-in-syria/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8be39edc1e697c36b0abea16f367c4a0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">julyanarbel</media:title>
		</media:content>

		<media:content url="http://statisfaction.files.wordpress.com/2012/02/total.png" medium="image">
			<media:title type="html">total</media:title>
		</media:content>

		<media:content url="http://statisfaction.files.wordpress.com/2012/02/day1.png" medium="image">
			<media:title type="html">day</media:title>
		</media:content>

		<media:content url="http://statisfaction.files.wordpress.com/2012/02/totalday.png" medium="image">
			<media:title type="html">totalday</media:title>
		</media:content>

		<media:content url="http://statisfaction.files.wordpress.com/2012/02/box.png" medium="image">
			<media:title type="html">box</media:title>
		</media:content>

		<media:content url="http://statisfaction.files.wordpress.com/2012/02/den.png" medium="image">
			<media:title type="html">den</media:title>
		</media:content>

		<media:content url="http://statisfaction.files.wordpress.com/2012/02/dens1.png" medium="image">
			<media:title type="html">dens</media:title>
		</media:content>
	</item>
		<item>
		<title>Coming R meetings in Paris</title>
		<link>http://statisfaction.wordpress.com/2012/02/04/coming-r-meetings-in-paris/</link>
		<comments>http://statisfaction.wordpress.com/2012/02/04/coming-r-meetings-in-paris/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 07:16:52 +0000</pubDate>
		<dc:creator>Julyan Arbel</dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[Seminar/Conference]]></category>

		<guid isPermaLink="false">http://statisfaction.wordpress.com/?p=1812</guid>
		<description><![CDATA[If you live in Paris and are interested in R, there will be two meetings for you this week. First a Semin-R session, organized at the Muséum National d&#8217;Histoire Naturelle on Tuesday 7 Feb (too bad, the Museum is closed on Tuesdays). Presentations will be about colors, phylogenies and maps, while I will speak about [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1812&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://rug.mnhn.fr/semin-r/"><img class="aligncenter size-full wp-image-1816" title="banniere" src="http://statisfaction.files.wordpress.com/2012/02/banniere.png?w=720&#038;h=92" alt="" width="720" height="92" /></a></p>
<p>If you live in Paris and are interested in R, there will be two meetings for you this week.</p>
<p>First a <a href="http://rug.mnhn.fr/semin-r/">Semin-R</a> <a href="http://rug.mnhn.fr/semin-r/PDF/semin-R_flyer.pdf">session</a>, organized at the <a href="http://www.mnhn.fr/">Muséum National d&#8217;Histoire Naturelle</a> on Tuesday 7 Feb (too bad, the Museum is closed on Tuesdays). Presentations will be about colors, phylogenies and maps, while I will speak about (<a title="RStudio is good for you" href="http://statisfaction.wordpress.com/2011/04/29/rstudio-is-good-for-you/">my beloved</a>) <a href="http://rstudio.org">RStudio</a>. The slides of previous sessions can be found <a href="http://http://rug.mnhn.fr/semin-r/presentations.html">here</a> (most of them are in French).</p>
<p>The following day, 8 Feb, a group of R users from <a href="http://www.insee.fr">INSEE</a> will have its first meeting (13-14h, INSEE, room R12), about <a href="http://en.wikipedia.org/wiki/SQLite">SQLite</a> data in R, maps, and <img src='http://s0.wp.com/latex.php?latex=%5CLaTeX&amp;bg=fff&amp;fg=222&amp;s=0' alt='&#92;LaTeX' title='&#92;LaTeX' class='latex' /> in R.</p>
<p>I guess anyone can join!</p>
<p>UPDATE: Here is a colorful <a href="http://www.insee.fr/fr/insee-statistique-publique/default.asp?page=connaitre/plan.htm">map</a> to access INSEE <img src='http://s0.wp.com/latex.php?latex=%5Ctau+R&amp;bg=fff&amp;fg=222&amp;s=0' alt='&#92;tau R' title='&#92;tau R' class='latex' />. Come with an ID, and say you are visiting the meeting organizer Matthieu Cornec. Room R12 is on the ground floor (left).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/statisfaction.wordpress.com/1812/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/statisfaction.wordpress.com/1812/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/statisfaction.wordpress.com/1812/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/statisfaction.wordpress.com/1812/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/statisfaction.wordpress.com/1812/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/statisfaction.wordpress.com/1812/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/statisfaction.wordpress.com/1812/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/statisfaction.wordpress.com/1812/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/statisfaction.wordpress.com/1812/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/statisfaction.wordpress.com/1812/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/statisfaction.wordpress.com/1812/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/statisfaction.wordpress.com/1812/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/statisfaction.wordpress.com/1812/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/statisfaction.wordpress.com/1812/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1812&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://statisfaction.wordpress.com/2012/02/04/coming-r-meetings-in-paris/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8be39edc1e697c36b0abea16f367c4a0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">julyanarbel</media:title>
		</media:content>

		<media:content url="http://statisfaction.files.wordpress.com/2012/02/banniere.png" medium="image">
			<media:title type="html">banniere</media:title>
		</media:content>
	</item>
		<item>
		<title>Heading to the National University of Singapore</title>
		<link>http://statisfaction.wordpress.com/2012/02/03/heading-to-the-national-university-of-singapore/</link>
		<comments>http://statisfaction.wordpress.com/2012/02/03/heading-to-the-national-university-of-singapore/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 10:32:27 +0000</pubDate>
		<dc:creator>Pierre Jacob</dc:creator>
				<category><![CDATA[Seminar/Conference]]></category>

		<guid isPermaLink="false">http://statisfaction.wordpress.com/?p=1805</guid>
		<description><![CDATA[Hey there, Next Wednesday (Feb 8th) I&#8217;ll give a talk on SMC² at the National University of Singapore (3pm, S16-06-118, DSAP Seminar Room if you&#8217;re interested). By the way, the SMC² paper has been hugely revised, along with the python package and the supplement. Among the main changes, we made a thorough comparison with Liu [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1805&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-medium wp-image-1806" title="" src="http://statisfaction.files.wordpress.com/2012/02/singapore_skyline.jpg?w=400&#038;h=266" alt="" width="400" height="266" /></p>
<p>Hey there,</p>
<p>Next Wednesday (Feb 8th) I&#8217;ll give a talk on <a href="http://arxiv.org/abs/1101.1528">SMC²</a> at the National University of Singapore (3pm, S16-06-118, DSAP Seminar Room if you&#8217;re interested).</p>
<p>By the way, <a href="http://arxiv.org/abs/1101.1528">the SMC² paper</a> has been hugely revised, along with the <a href="http://code.google.com/p/py-smc2/">python package</a> and the <a href="https://sites.google.com/site/pierrejacob/SMC2Supplementpdf?attredirects=0&amp;d=1">supplement</a>. Among the main changes, we made a thorough comparison with Liu &amp; West SMC method (which is based on extending the hidden state to include the parameter), and we added a fair bit of justification of the computational cost of the method, which we believe is very reasonable considering the difficulty of the problem (ie estimation in HMM) and the cost of concurrent algorithms. We also considered the validity of SMC² on a sequence of annealed posterior densities, following a reviewer&#8217;s interesting comment. It&#8217;s good to be finished with it (for now at least), and to move to new projects!</p>
<p>I&#8217;ll spend next week in Singapore working with <a href="http://www2.ic.ac.uk/~aj2/">Ajay Jasra</a>, and then I&#8217;ll head off to the <a href="http://www.mcqmc2012.unsw.edu.au/">Monte Carlo and Quasi Monte Carlo</a> conference in Sydney, where I&#8217;ll stay for ~2 weeks. I&#8217;ll be worth another blog post of course.</p>
<p>Cheers!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/statisfaction.wordpress.com/1805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/statisfaction.wordpress.com/1805/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/statisfaction.wordpress.com/1805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/statisfaction.wordpress.com/1805/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/statisfaction.wordpress.com/1805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/statisfaction.wordpress.com/1805/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/statisfaction.wordpress.com/1805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/statisfaction.wordpress.com/1805/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/statisfaction.wordpress.com/1805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/statisfaction.wordpress.com/1805/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/statisfaction.wordpress.com/1805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/statisfaction.wordpress.com/1805/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/statisfaction.wordpress.com/1805/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/statisfaction.wordpress.com/1805/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1805&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://statisfaction.wordpress.com/2012/02/03/heading-to-the-national-university-of-singapore/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd7b6e7af1a2d912dcf56f92c4698148?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pierrejacob</media:title>
		</media:content>

		<media:content url="http://statisfaction.files.wordpress.com/2012/02/singapore_skyline.jpg?w=400" medium="image" />
	</item>
		<item>
		<title>GPUs in Computational Statistics</title>
		<link>http://statisfaction.wordpress.com/2012/01/17/gpus-in-computational-statistics/</link>
		<comments>http://statisfaction.wordpress.com/2012/01/17/gpus-in-computational-statistics/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 11:13:52 +0000</pubDate>
		<dc:creator>Pierre Jacob</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Seminar/Conference]]></category>

		<guid isPermaLink="false">http://statisfaction.wordpress.com/?p=1783</guid>
		<description><![CDATA[Hey, Next week the Centre for Research in Statistical Methodology (CRiSM, in Warwick, UK) will be hosting a workshop on the use of graphics processing units in statistics, a quickly expanding area that I&#8217;ve blogged about here. Xian and I are going to talk about Parallel IMH and Parallel Wang Landau. We&#8217;ll be able to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1783&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-medium wp-image-1784" title="KF2-2002" src="http://statisfaction.files.wordpress.com/2012/01/mill_street_warwick.jpg?w=400&#038;h=300" alt="" width="400" height="300" /></p>
<p>Hey,</p>
<p>Next week the <a href="http://www2.warwick.ac.uk/fac/sci/statistics/crism/">Centre for Research in Statistical Methodology</a> (CRiSM, in Warwick, UK) will be hosting a workshop on the use of graphics processing units in statistics, a quickly expanding area that I&#8217;ve blogged about <a href="http://statisfaction.wordpress.com/2010/07/16/using-graphic-cards-to-perform-statistical-computation/">here</a>. <a href="http://xianblog.wordpress.com/">Xian</a> and I are going to talk about <a href="http://statisfaction.wordpress.com/2011/03/17/update-on-the-parallel-imh-article/">Parallel IMH</a> and <a href="http://statisfaction.wordpress.com/2011/09/21/density-exploration-and-wang-landau-algorithms-with-r-package/">Parallel Wang Landau</a>. We&#8217;ll be able to interact with top researchers in methodological statistics and early adopters of GPUs like <a href="http://www.stats.ox.ac.uk/~cholmes/">Chris Holmes</a>, whose talk at <a href="http://www.uv.es/valenciameeting">Valencia 9</a> was quite influential in the field (and for my PhD!), and <a href="http://www.maths.bris.ac.uk/~maxca/">Christophe Andrieu</a>, who is one of the to-be-praised Particle MCMC guys (see e.g. <a href="http://darrenjw.wordpress.com/2011/05/17/the-particle-marginal-metropolis-hastings-pmmh-particle-mcmc-algorithm/">here</a>)</p>
<p>The programme for the workshop is here:<a href="http://www2.warwick.ac.uk/fac/sci/statistics/crism/workshops/gpu/programme"> http://www2.warwick.ac.uk/fac/sci/statistics/crism/workshops/gpu/programme</a></p>
<p>&#8230;and registration fee is only 50£, ie not even a half GPU!</p>
<p>By the way this page</p>
<p><a href="http://www.louisaslett.com/Talks/GPU_Programming_Basics_Getting_Started.html">http://www.louisaslett.com/Talks/GPU_Programming_Basics_Getting_Started.html</a></p>
<p>should help you a lot if you want to use plain CUDA C code within R.</p>
<p>As for me, thanks to <a href="http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/lee/">Anthony Lee</a> I will spend a week in Warwick prior to the meeting, working at CRiSM and enjoying the West Midlands.</p>
<p>Cheers!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/statisfaction.wordpress.com/1783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/statisfaction.wordpress.com/1783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/statisfaction.wordpress.com/1783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/statisfaction.wordpress.com/1783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/statisfaction.wordpress.com/1783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/statisfaction.wordpress.com/1783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/statisfaction.wordpress.com/1783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/statisfaction.wordpress.com/1783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/statisfaction.wordpress.com/1783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/statisfaction.wordpress.com/1783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/statisfaction.wordpress.com/1783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/statisfaction.wordpress.com/1783/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/statisfaction.wordpress.com/1783/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/statisfaction.wordpress.com/1783/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1783&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://statisfaction.wordpress.com/2012/01/17/gpus-in-computational-statistics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd7b6e7af1a2d912dcf56f92c4698148?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pierrejacob</media:title>
		</media:content>

		<media:content url="http://statisfaction.files.wordpress.com/2012/01/mill_street_warwick.jpg?w=400" medium="image">
			<media:title type="html">KF2-2002</media:title>
		</media:content>
	</item>
		<item>
		<title>New Year and many things to do</title>
		<link>http://statisfaction.wordpress.com/2012/01/02/new-year-and-many-things-to-do/</link>
		<comments>http://statisfaction.wordpress.com/2012/01/02/new-year-and-many-things-to-do/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 14:12:48 +0000</pubDate>
		<dc:creator>Pierre Jacob</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://statisfaction.wordpress.com/?p=1771</guid>
		<description><![CDATA[Happy New Year to all of you, dear readers! We&#8217;ve been quite busy lately, Julyan and I being nearer and nearer to the end of our PhDs and Robin being a new lecturer at Université Paris-Dauphine&#8230; but we hope to go on blogging in 2012. There is quite a few things to blog about, and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1771&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-medium wp-image-1774" title="" src="http://statisfaction.files.wordpress.com/2012/01/2012.jpg?w=400&#038;h=394" alt="" width="400" height="394" /></p>
<p>Happy New Year to all of you, dear readers!</p>
<p>We&#8217;ve been quite busy lately, Julyan and I being nearer and nearer to the end of our PhDs and Robin being a new lecturer at Université Paris-Dauphine&#8230; but we hope to go on blogging in 2012. There is quite a few things to blog about, and we&#8217;re proud to have more and more readers with more than 500 views a week, even though the blog is not always very active.</p>
<p>2012 is going to be the year of the <a href="http://www2.e.u-tokyo.ac.jp/~isba2012/">ISBA meeting in Japan</a>, where a bunch of us at CREST and Dauphine intend to go. It&#8217;s also the year of <a href="http://www.mcqmc2012.unsw.edu.au/">MCQMC in Sydney</a>, the largest meeting on Monte Carlo methods, which a couple of us PhD students will also attend. For some of us it will hopefully be our final year as students, and thus a particularly exciting (if busy) year.</p>
<p>Cheers,</p>
<p>Pierre</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/statisfaction.wordpress.com/1771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/statisfaction.wordpress.com/1771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/statisfaction.wordpress.com/1771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/statisfaction.wordpress.com/1771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/statisfaction.wordpress.com/1771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/statisfaction.wordpress.com/1771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/statisfaction.wordpress.com/1771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/statisfaction.wordpress.com/1771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/statisfaction.wordpress.com/1771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/statisfaction.wordpress.com/1771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/statisfaction.wordpress.com/1771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/statisfaction.wordpress.com/1771/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/statisfaction.wordpress.com/1771/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/statisfaction.wordpress.com/1771/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1771&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://statisfaction.wordpress.com/2012/01/02/new-year-and-many-things-to-do/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd7b6e7af1a2d912dcf56f92c4698148?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pierrejacob</media:title>
		</media:content>

		<media:content url="http://statisfaction.files.wordpress.com/2012/01/2012.jpg?w=400" medium="image" />
	</item>
		<item>
		<title>Psycho dice and Monte Carlo</title>
		<link>http://statisfaction.wordpress.com/2011/12/16/psycho-dice-2/</link>
		<comments>http://statisfaction.wordpress.com/2011/12/16/psycho-dice-2/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 15:48:05 +0000</pubDate>
		<dc:creator>Julyan Arbel</dc:creator>
				<category><![CDATA[R]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[geometric distribution]]></category>
		<category><![CDATA[Monte Carlo]]></category>
		<category><![CDATA[psycho dice]]></category>

		<guid isPermaLink="false">http://statisfaction.wordpress.com/?p=1714</guid>
		<description><![CDATA[Following Pierre&#8217;s post on psycho dice, I want here to see by which average margin repeated plays might be called influenced by mind will. The rules are the following (exerpt from the novel Midnight in the Garden of Good and Evil, by John Berendt): You take four dice and call out four numbers between one [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1714&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Following Pierre&#8217;s <a title="Psycho dice" href="http://statisfaction.wordpress.com/2011/11/30/psycho-dice/">post</a> on <em>psycho dice</em>, I want here to see by which average margin repeated plays might be called <em>influenced by mind will</em>. The rules are the following (exerpt from the novel <a href="http://en.wikipedia.org/wiki/Midnight_in_the_Garden_of_Good_and_Evil"><em>Midnight in the Garden of Good and Evil</em>, by John Berendt</a>):</p>
<blockquote><p>You take four dice and call out four numbers between one and six–for example, a four, a three, and two sixes. Then you throw the dice, and if any of your numbers come up, you leave those dice standing on the board. You continue to roll the remaining dice until all the dice are sitting on the board, showing your set of numbers. You’re eliminated if you roll three times in succession without getting any of the numbers you need. The object is to get all four numbers in the fewest rolls.</p></blockquote>
<p>Simplify the game by forgetting the elimination step. Suppose first one plays with an even dice of <em>1/p</em> faces. The probability of it to show the right face is <em>p</em> (for somebody with no <em>psy</em> power). Denote <em>X</em> the time to first success with one dice, which follows, by independence, a geometric distribution Geom(<em>p</em>) (with the starting-to-1 convention). <em>X</em> has the following probability mass and cumulative distribution functions, with <em>q=1-p</em>:</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=f_X%28k%29%3Dpq%5E%7Bk-1%7D%2C%5Cquad+F_X%28k%29%3D1-q%5Ek.&amp;bg=fff&amp;fg=222&amp;s=0' alt='f_X(k)=pq^{k-1},&#92;quad F_X(k)=1-q^k.' title='f_X(k)=pq^{k-1},&#92;quad F_X(k)=1-q^k.' class='latex' /></p>
<p>Now denote <em>Y</em> the time to success in the game with <em>n</em> dice. This simultaneous case is the same as playing <em>n</em> times independently with 1 dice, and then taking <em>Y</em> as the sample maximum of the different times to success. So <em>Y</em>&#8216;s cdf is</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=F_Y%28k%29%3DF_X%28k%29%5En%3D%281-q%5Ek%29%5En.&amp;bg=fff&amp;fg=222&amp;s=0' alt='F_Y(k)=F_X(k)^n=(1-q^k)^n.' title='F_Y(k)=F_X(k)^n=(1-q^k)^n.' class='latex' /></p>
<p>Its pmf can be obtained either exactly by difference, or up to a normalizing constant <em>C</em> by differentiation:</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=f_Y%28k%29%3DCq%5Ek%281-q%5Ek%29%5E%7Bn-1%7D.&amp;bg=fff&amp;fg=222&amp;s=0' alt='f_Y(k)=Cq^k(1-q^k)^{n-1}.' title='f_Y(k)=Cq^k(1-q^k)^{n-1}.' class='latex' /></p>
<p>As it is not too far from the Geom(<em>p</em>) pmf, one can use the latter as the proposal in a Monte Carlo estimate. If <img src='http://s0.wp.com/latex.php?latex=X_i&amp;bg=fff&amp;fg=222&amp;s=0' alt='X_i' title='X_i' class='latex' />&#8216;s are <em>N</em> independent Geom(<em>p</em>) variables, then</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=E%28Y%29+%5Capprox+%5Cfrac%7B%5Csum_i+X_i%281-q%5E%7BX_i%7D%29%5E%7Bn-1%7D%7D%7B%5Csum_i+%281-q%5E%7BX_i%7D%29%5E%7Bn-1%7D%7D&amp;bg=fff&amp;fg=222&amp;s=0' alt='E(Y) &#92;approx &#92;frac{&#92;sum_i X_i(1-q^{X_i})^{n-1}}{&#92;sum_i (1-q^{X_i})^{n-1}}' title='E(Y) &#92;approx &#92;frac{&#92;sum_i X_i(1-q^{X_i})^{n-1}}{&#92;sum_i (1-q^{X_i})^{n-1}}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=E%28Y%5E2%29+%5Capprox+%5Cfrac%7B%5Csum_i+X_i%5E2%281-q%5E%7BX_i%7D%29%5E%7Bn-1%7D%7D%7B%5Csum_i+%281-q%5E%7BX_i%7D%29%5E%7Bn-1%7D%7D.&amp;bg=fff&amp;fg=222&amp;s=0' alt='E(Y^2) &#92;approx &#92;frac{&#92;sum_i X_i^2(1-q^{X_i})^{n-1}}{&#92;sum_i (1-q^{X_i})^{n-1}}.' title='E(Y^2) &#92;approx &#92;frac{&#92;sum_i X_i^2(1-q^{X_i})^{n-1}}{&#92;sum_i (1-q^{X_i})^{n-1}}.' class='latex' /></p>
<p>The following R lines produce the estimates <img src='http://s0.wp.com/latex.php?latex=%5Cmu_Y%3DE%28Y%29+%3D+11.4&amp;bg=fff&amp;fg=222&amp;s=0' alt='&#92;mu_Y=E(Y) = 11.4' title='&#92;mu_Y=E(Y) = 11.4' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Csigma_Y%3Dsd%28Y%29+%3D+6.5&amp;bg=fff&amp;fg=222&amp;s=0' alt='&#92;sigma_Y=sd(Y) = 6.5' title='&#92;sigma_Y=sd(Y) = 6.5' class='latex' />.</p>
<div style="overflow:auto;">
<div class="geshifilter">
<pre class="r geshifilter-R" style="font-family:monospace;">p=<span style="color:#cc66cc;">1</span>/<span style="color:#cc66cc;">6</span>
<a href="http://inside-r.org/r-doc/base/q"><span style="color:#003399;font-weight:bold;">q</span></a>=<span style="color:#cc66cc;">1</span>-p
n=<span style="color:#cc66cc;">4</span>
rgeom1=<a href="http://inside-r.org/r-doc/base/function"><span style="color:#003399;font-weight:bold;">function</span></a><span style="color:#009900;">(</span>n<span style="color:#339933;">,</span>p<span style="color:#009900;">)</span><span style="color:#009900;">{</span><a href="http://inside-r.org/r-doc/stats/rgeom"><span style="color:#003399;font-weight:bold;">rgeom</span></a><span style="color:#009900;">(</span>n<span style="color:#339933;">,</span>p<span style="color:#009900;">)</span>+<span style="color:#cc66cc;">1</span><span style="color:#009900;">}</span>
h=<a href="http://inside-r.org/r-doc/base/function"><span style="color:#003399;font-weight:bold;">function</span></a><span style="color:#009900;">(</span>x<span style="color:#009900;">)</span><span style="color:#009900;">{</span><span style="color:#009900;">(</span><span style="color:#cc66cc;">1</span>-<a href="http://inside-r.org/r-doc/base/q"><span style="color:#003399;font-weight:bold;">q</span></a>^x<span style="color:#009900;">)</span>^<span style="color:#009900;">(</span>n-<span style="color:#cc66cc;">1</span><span style="color:#009900;">)</span><span style="color:#009900;">}</span>

N=<span style="color:#cc66cc;">10</span>^<span style="color:#cc66cc;">6</span>
X=rgeom1<span style="color:#009900;">(</span>N<span style="color:#339933;">,</span>p<span style="color:#009900;">)</span>
<span style="color:#009900;">(</span><a href="http://inside-r.org/r-doc/stats/C"><span style="color:#003399;font-weight:bold;">C</span></a>=<span style="color:#cc66cc;">1</span>/mean<span style="color:#009900;">(</span>h<span style="color:#009900;">(</span>X<span style="color:#009900;">)</span><span style="color:#009900;">)</span><span style="color:#009900;">)</span>
<span style="color:#009900;">(</span>m1_Y=<a href="http://inside-r.org/r-doc/stats/C"><span style="color:#003399;font-weight:bold;">C</span></a>*<a href="http://inside-r.org/r-doc/base/mean"><span style="color:#003399;font-weight:bold;">mean</span></a><span style="color:#009900;">(</span>X*h<span style="color:#009900;">(</span>X<span style="color:#009900;">)</span><span style="color:#009900;">)</span><span style="color:#009900;">)</span>
<span style="color:#009900;">(</span>m2_Y=<a href="http://inside-r.org/r-doc/stats/C"><span style="color:#003399;font-weight:bold;">C</span></a>*<a href="http://inside-r.org/r-doc/base/mean"><span style="color:#003399;font-weight:bold;">mean</span></a><span style="color:#009900;">(</span>X^<span style="color:#cc66cc;">2</span>*h<span style="color:#009900;">(</span>X<span style="color:#009900;">)</span><span style="color:#009900;">)</span><span style="color:#009900;">)</span>
<span style="color:#009900;">(</span>sd_Y=<a href="http://inside-r.org/r-doc/base/sqrt"><span style="color:#003399;font-weight:bold;">sqrt</span></a><span style="color:#009900;">(</span>m2_Y-m1_Y^<span style="color:#cc66cc;">2</span><span style="color:#009900;">)</span><span style="color:#009900;">)</span></pre>
</div>
</div>
<p><a title="Created by Pretty R at inside-R.org" href="http://www.inside-r.org/pretty-r">Created by Pretty R at inside-R.org</a></p>
<p>Now it is possible to use a test (from classical test theory) to estimate the average margin with which repeated games should deviate in order to detect statistical evidence of <em>psy</em> power. We are interested in testing <img src='http://s0.wp.com/latex.php?latex=H_0%5C%2C%3A%5C%2CE%28Y%29%3D%5Cmu_Y&amp;bg=fff&amp;fg=222&amp;s=0' alt='H_0&#92;,:&#92;,E(Y)=&#92;mu_Y' title='H_0&#92;,:&#92;,E(Y)=&#92;mu_Y' class='latex' /> against <img src='http://s0.wp.com/latex.php?latex=H_1%5C%2C%3A%5C%2CE%28Y%29%3C%5Cmu_Y&amp;bg=fff&amp;fg=222&amp;s=0' alt='H_1&#92;,:&#92;,E(Y)&lt;&#92;mu_Y' title='H_1&#92;,:&#92;,E(Y)&lt;&#92;mu_Y' class='latex' />, for repeated plays.</p>
<p>If the game is played <em>k</em> times, then one rejects <img src='http://s0.wp.com/latex.php?latex=H_0&amp;bg=fff&amp;fg=222&amp;s=0' alt='H_0' title='H_0' class='latex' /> if the sampled mean <img src='http://s0.wp.com/latex.php?latex=%5Cbar%7BY%7D&amp;bg=fff&amp;fg=222&amp;s=0' alt='&#92;bar{Y}' title='&#92;bar{Y}' class='latex' /> is less than <img src='http://s0.wp.com/latex.php?latex=%5Cmu_Y+-%5Cfrac%7B%5Csigma_Y%7D%7B%5Csqrt%7Bk%7D%7Dq_%7B.95%7D&amp;bg=fff&amp;fg=222&amp;s=0' alt='&#92;mu_Y -&#92;frac{&#92;sigma_Y}{&#92;sqrt{k}}q_{.95}' title='&#92;mu_Y -&#92;frac{&#92;sigma_Y}{&#92;sqrt{k}}q_{.95}' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=q_%7B.95%7D&amp;bg=fff&amp;fg=222&amp;s=0' alt='q_{.95}' title='q_{.95}' class='latex' /> is the 95% standard normal quantile. To indicate the presence of a <em>psy</em> power, someone playing <img src='http://s0.wp.com/latex.php?latex=k%3D20&amp;bg=fff&amp;fg=222&amp;s=0' alt='k=20' title='k=20' class='latex' /> times should perform in 2 rolls less than the predicted value <img src='http://s0.wp.com/latex.php?latex=%5Cmu_Y%3D+11.4&amp;bg=fff&amp;fg=222&amp;s=0' alt='&#92;mu_Y= 11.4' title='&#92;mu_Y= 11.4' class='latex' /> (in 1 roll less if playing <img src='http://s0.wp.com/latex.php?latex=k%3D80&amp;bg=fff&amp;fg=222&amp;s=0' alt='k=80' title='k=80' class='latex' /> times). I can&#8217;t wait, I&#8217;m going to grab a dice!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/statisfaction.wordpress.com/1714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/statisfaction.wordpress.com/1714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/statisfaction.wordpress.com/1714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/statisfaction.wordpress.com/1714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/statisfaction.wordpress.com/1714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/statisfaction.wordpress.com/1714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/statisfaction.wordpress.com/1714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/statisfaction.wordpress.com/1714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/statisfaction.wordpress.com/1714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/statisfaction.wordpress.com/1714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/statisfaction.wordpress.com/1714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/statisfaction.wordpress.com/1714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/statisfaction.wordpress.com/1714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/statisfaction.wordpress.com/1714/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1714&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://statisfaction.wordpress.com/2011/12/16/psycho-dice-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8be39edc1e697c36b0abea16f367c4a0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">julyanarbel</media:title>
		</media:content>
	</item>
		<item>
		<title>Create maps with maptools R package</title>
		<link>http://statisfaction.wordpress.com/2011/12/13/create-maps-with-maptools/</link>
		<comments>http://statisfaction.wordpress.com/2011/12/13/create-maps-with-maptools/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 18:19:26 +0000</pubDate>
		<dc:creator>Julyan Arbel</dc:creator>
				<category><![CDATA[Dataset]]></category>
		<category><![CDATA[R]]></category>

		<guid isPermaLink="false">http://statisfaction.wordpress.com/?p=1752</guid>
		<description><![CDATA[Baptiste Coulmont explains on his blog how to use the R package maptools. It is based on shapefile files, for example the ones offered by the French geography agency IGN (at départements and communes level). Some additional material like roads and railways are provided by the OpenStreetMap project, here. For the above map, you need [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1752&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://coulmont.com/cartes/rcarto.pdf"><img class="aligncenter size-full wp-image-1753" title="paris" src="http://statisfaction.files.wordpress.com/2011/12/paris.png?w=720" alt=""   /></a>Baptiste Coulmont explains on his <a href="http://coulmont.com/blog/2011/12/11/ah-36-000-communes/">blog</a> how to <a href="http://coulmont.com/cartes/rcarto.pdf">use</a> the R package <a href="http://cran.r-project.org/web/packages/maptools/index.html">maptools</a>. It is based on shapefile files, for example the <a href="http://professionnels.ign.fr/ficheProduitCMS.do?idDoc=6185461">ones</a> offered by the French geography agency IGN (at départements and communes level). Some additional material like roads and railways are provided by the OpenStreetMap project, <a href="http://download.geofabrik.de/osm/europe/france/">here</a>. For the above map, you need to dowload and dezip the files departements.shp.zip and ile-de-france.shp.zip. The red dots correspond to points of interest longitude / latitude, here churches stored in a vector <em>eglises</em> (use e.g. <a href="http://statisfaction.wordpress.com/2011/10/05/calling-google-maps-api-from-r/">this</a> to geolocalise places of interest). Then run this code from Baptiste&#8217;s <a href="http://coulmont.com/cartes/rcarto.pdf">tutorial</a></p>
<div style="overflow:auto;">
<div class="geshifilter">
<pre class="r geshifilter-R" style="font-family:monospace;"><a href="http://inside-r.org/r-doc/base/library"><span style="color:#003399;font-weight:bold;">library</span></a><span style="color:#009900;">(</span><a href="http://inside-r.org/packages/cran/maptools">maptools</a><span style="color:#009900;">)</span>
france&lt;-readShapeSpatial<span style="color:#009900;">(</span><span style="color:#0000ff;">"departements.shp"</span><span style="color:#339933;">,</span>
  proj4string=CRS<span style="color:#009900;">(</span><span style="color:#0000ff;">"+proj=longlat"</span><span style="color:#009900;">)</span><span style="color:#009900;">)</span>
routesidf&lt;-readShapeLines<span style="color:#009900;">(</span>
  <span style="color:#0000ff;">"ile-de-france.shp/roads.shp"</span><span style="color:#339933;">,</span>
  proj4string=CRS<span style="color:#009900;">(</span><span style="color:#0000ff;">"+proj=longlat"</span><span style="color:#009900;">)</span>
  <span style="color:#009900;">)</span>
trainsidf&lt;-readShapeLines<span style="color:#009900;">(</span>
  <span style="color:#0000ff;">"ile-de-france.shp/railways.shp"</span><span style="color:#339933;">,</span>
  proj4string=CRS<span style="color:#009900;">(</span><span style="color:#0000ff;">"+proj=longlat"</span><span style="color:#009900;">)</span>
  <span style="color:#009900;">)</span>
<a href="http://inside-r.org/r-doc/graphics/plot"><span style="color:#003399;font-weight:bold;">plot</span></a><span style="color:#009900;">(</span>france<span style="color:#339933;">,</span>xlim=<a href="http://inside-r.org/r-doc/base/c"><span style="color:#003399;font-weight:bold;">c</span></a><span style="color:#009900;">(</span><span style="color:#cc66cc;">2.2</span><span style="color:#339933;">,</span><span style="color:#cc66cc;">2.4</span><span style="color:#009900;">)</span><span style="color:#339933;">,</span>ylim=<a href="http://inside-r.org/r-doc/base/c"><span style="color:#003399;font-weight:bold;">c</span></a><span style="color:#009900;">(</span><span style="color:#cc66cc;">48.75</span><span style="color:#339933;">,</span><span style="color:#cc66cc;">48.95</span><span style="color:#009900;">)</span><span style="color:#339933;">,</span>lwd=<span style="color:#cc66cc;">2</span><span style="color:#009900;">)</span>
<a href="http://inside-r.org/r-doc/graphics/plot"><span style="color:#003399;font-weight:bold;">plot</span></a><span style="color:#009900;">(</span>routesidf<span style="color:#009900;">[</span>routesidf$type==<span style="color:#0000ff;">"secondary"</span><span style="color:#339933;">,</span><span style="color:#009900;">]</span><span style="color:#339933;">,</span>add=<span style="color:#000000;font-weight:bold;">TRUE</span><span style="color:#339933;">,</span>lwd=<span style="color:#cc66cc;">2</span><span style="color:#339933;">,</span><a href="http://inside-r.org/r-doc/base/col"><span style="color:#003399;font-weight:bold;">col</span></a>=<span style="color:#0000ff;">"lightgray"</span><span style="color:#009900;">)</span>
<a href="http://inside-r.org/r-doc/graphics/plot"><span style="color:#003399;font-weight:bold;">plot</span></a><span style="color:#009900;">(</span>routesidf<span style="color:#009900;">[</span>routesidf$type==<span style="color:#0000ff;">"primary"</span><span style="color:#339933;">,</span><span style="color:#009900;">]</span><span style="color:#339933;">,</span>add=<span style="color:#000000;font-weight:bold;">TRUE</span><span style="color:#339933;">,</span>lwd=<span style="color:#cc66cc;">2</span><span style="color:#339933;">,</span><a href="http://inside-r.org/r-doc/base/col"><span style="color:#003399;font-weight:bold;">col</span></a>=<span style="color:#0000ff;">"lightgray"</span><span style="color:#009900;">)</span>
<a href="http://inside-r.org/r-doc/graphics/plot"><span style="color:#003399;font-weight:bold;">plot</span></a><span style="color:#009900;">(</span>trainsidf<span style="color:#009900;">[</span>trainsidf$type==<span style="color:#0000ff;">"rail"</span><span style="color:#339933;">,</span><span style="color:#009900;">]</span><span style="color:#339933;">,</span>add=<span style="color:#000000;font-weight:bold;">TRUE</span><span style="color:#339933;">,</span>lwd=<span style="color:#cc66cc;">1</span><span style="color:#339933;">,</span><a href="http://inside-r.org/r-doc/base/col"><span style="color:#003399;font-weight:bold;">col</span></a>=<span style="color:#0000ff;">"burlywood3"</span><span style="color:#009900;">)</span>
<a href="http://inside-r.org/r-doc/graphics/points"><span style="color:#003399;font-weight:bold;">points</span></a><span style="color:#009900;">(</span>eglises$lon<span style="color:#339933;">,</span>eglises$lat<span style="color:#339933;">,</span>pch=<span style="color:#cc66cc;">20</span><span style="color:#339933;">,</span><a href="http://inside-r.org/r-doc/base/col"><span style="color:#003399;font-weight:bold;">col</span></a>=<span style="color:#0000ff;">"red"</span><span style="color:#009900;">)</span></pre>
</div>
</div>
<p><a title="Created by Pretty R at inside-R.org" href="http://www.inside-r.org/pretty-r">Created by Pretty R at inside-R.org</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/statisfaction.wordpress.com/1752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/statisfaction.wordpress.com/1752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/statisfaction.wordpress.com/1752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/statisfaction.wordpress.com/1752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/statisfaction.wordpress.com/1752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/statisfaction.wordpress.com/1752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/statisfaction.wordpress.com/1752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/statisfaction.wordpress.com/1752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/statisfaction.wordpress.com/1752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/statisfaction.wordpress.com/1752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/statisfaction.wordpress.com/1752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/statisfaction.wordpress.com/1752/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/statisfaction.wordpress.com/1752/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/statisfaction.wordpress.com/1752/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=statisfaction.wordpress.com&amp;blog=14440299&amp;post=1752&amp;subd=statisfaction&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://statisfaction.wordpress.com/2011/12/13/create-maps-with-maptools/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8be39edc1e697c36b0abea16f367c4a0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">julyanarbel</media:title>
		</media:content>

		<media:content url="http://statisfaction.files.wordpress.com/2011/12/paris.png" medium="image">
			<media:title type="html">paris</media:title>
		</media:content>
	</item>
	</channel>
</rss>
