H. G. Wells famously said that, “statistical thinking will one day be as necessary for efficient citizenship as the ability to read and write.” I think we’re getting closer to that day: even the Supreme Court of the United States plan...

H. G. Wells famously said that, “statistical thinking will one day be as necessary for efficient citizenship as the ability to read and write.” I think we’re getting closer to that day: even the Supreme Court of the United States plan...

In case you missed them, here are some articles from last month of particular interest to R users. This post looked at a climate change controversy involving the weather in Darwin, Australia and a review of the source data using R. This post showed how to access global weather data from the US National Centers for Environment Prediction using...

Yesterday, Deepak wrote about BridgeDB, a software package to deal with the “identifier mapping problem”. Put simply, biologists can name a biological entity in any way that they like, leading to multiple names for the same object. Easily solved, you might think, by choosing one identifier and sticking to it, but that’s apparently way too

After writing the solutions to the odd-numbered exercises in Chapter 5 of “Introducing Monte Carlo Methods with R”., I alas found the following typos, two of which are rather major (Exercise 5.3 and Example 5.16). I apologise to the readers these typos may confuse. – Exercise 5.3 has no simple encompassing set and the constraint should

As posted yesterday, today was the day of my Exploratory Statistics exam, turned into 3 R exams because of the lack of terminals for the students to work on. (We tried to encourage students to use their own laptop but less than twenty registered…) If you happen to be interested in those exams, they are

For those in the San Francisco area, tomorrow night's Bay Area R User Group meeting -- to be held at Twitter's HQ -- is a must-see. The theme is "R-Powered Web Apps" and features guest speakers Jeroen Ooms and Jeff Horner. (Disclosure: REvolution Computing is sponsoring Jeroen's appearance at this event.) We've featured Jeroen's awesome web-based applications using R...

It took several months after learning about ggplot2 before I gave it a try myself. I was apprehensive about learning a new graphics system with a new set of commands. Thing is, if you've ever used plot() in R, you already know how to use much of the functionality in ggplot2! In this tutorial I want to show you...

In a previous post I gave some examples of how to make a progress bar in R. In the examples the bars were created within loops. Very often though I have situations where I would like have a progress bar when using apply(). The plyr package provides several apply-like functions also including progress bars, so

Given the recent votes on same-sex marriage in New Jersey and Portugal, I wanted to test a seemingly innocuous claim that touches upon very broad issues in political theory: does the degree of directness of a “democratic” vote predict whether the vote will promote or prohibit same-sex marriage? Naively, it seemed clear to me that

Chapter 4 of “Introducing Monte Carlo Methods with R” has four typos (so far) in the exercises: – In Exercise 4.5, the should not be in bold fonts (!) – In Exercise 4.9, I commented too many lines when revising and thus the variance terms vanished. It should read – In Exercise 4.13, following the removal of

Out of curiosity, I produced a “sequential” set of ideal point estimate for the (current) 111th U.S. Senate, plotting the results in the graph attached below (click on the thumbnail); as is conventional, red is Republican and blue is Democratic. The analysis uses all 373 non-unanimous roll calls in the 111th Senate thus far. Each

In further support of the claim that a lot of deaths are partly self-induced, here’s a fascinating piece by Wired on the extraordinary rise in the percent of deaths among the young caused by their own poor decisions. It’s remarkable that, for the young, modern science has already made the world so safe that humanity,

It's a little strange to see a web comic come up with such interesting visualizations, but xkcd has followed up on their movie timelines charts with this illustration of the gravitational attraction of the various bodies in the solar system. The gravitational force at the surface of the planet or moon determines how high you'd need to jump in...

pre{ border: 1px solid black ; font-size: x-small; } One of the new features of Rcpp is the XPtr class template, which lets you treat an R external pointer as a regular pointer. For more information on external pointers, see Writing R extensions...

In example 7.20, we showed how to simulate categorical data. But we might anticipate needing to do that frequently. If a SAS function weren't built in and an equivalent R function not available in a package, we could build them from scratch.SASThe SAS code is particularly tortured, since we must parse the parameter string to extract the...

Last night I was one of five speakers at the NYC R Statistical Programming Meetup. The topic last night was dubbed the R Rosetta Stone, and the intent was to show how R as a language translated into several other analytical platforms and programming languages. Other speakers covered MATLAB, SAS, SQL/Postges and Clojure/Incanter—I

The Codecogs website provides an Open-source library of functions for numerical analysis. One interesting component available on the website is the LaTeX equation editor which can be used to create graphics files of equations to include on webpages. The webpage describe this component as a A web-based LaTeX equation editor that generates graphical images and HTML

Somehow missed during the the end-of-year switchover was the fact that my review of Guenther Sawitzki's Computational Statistics: An Introduction to R (CRC / Chapman \& Hall, 2009) is now up on the Journal of Statistical Software website.

Somehow missed during the the end-of-year switchover was the fact that my review of Guenther Sawitzki's Computational Statistics: An Introduction to R (CRC / Chapman \& Hall, 2009) is now up on the Journal of Statistical Software website.

Somehow missed during the the end-of-year switchover was the fact that my review of Guenther Sawitzki's Computational Statistics: An Introduction to R (CRC / Chapman \& Hall, 2009) is now up on the Journal of Statistical Software website.

Download "Getting Started with the Social Media Analytics Research Toolkit" (pdf, 1.25 megabytes) Download the Social Media Analytics Research Toolkit Download Code Like A Pirate - The #rstats Appliance from the SUSE Gallery Disclosure As you probably ...

Here are two more typos in the exercises of Chapter 3 of “Introducing Monte Carlo Methods with R”. – due to the (later) inclusion of an extra-exercise in the book, the “above exercise” in Exercise 3.5 actually means Exercise 3.3. – in Exercise 3.11, question c, a line got commented by mistake in the LaTeX file and

Reader SK has collected the most recent data on R's package growth, through the latest 2.10 release. The three most recent releases fall slightly below the exponential growth line, which isn't altogether surprising (that's a lot of growth to sustain!). Another interesting thing to look at would be the combined rate of new packages submitted to CRAN and packages...