Monthly Archives: April 2013

A brainfuck interpreter for R

April 24, 2013
By
A brainfuck interpreter for R

The deadline for my book on R is fast approaching, so naturally I’m in full procrastination mode.  So much so that I’ve spent this evening creating a brainfuck interpreter for R.  brainfuck is a very simple programming language: you get an array of 30000 bytes, an index, and just 8 eight commands.  You move the

Read more »

Free e-Copy of Bayesian Computation with R (Use R)

April 24, 2013
By
Free e-Copy of Bayesian Computation with R (Use R)

Amazon is currently making the first edition of Bayesian Computation with R (Use R) by Jim Albert available for free on Kindle. I own a copy of the book and there is a lot of good content and R examples on how one can do general Bayesian statistics.  The R scripts  from the book (2nd edition but

Read more »

Stamen maps with spplot

Stamen maps with spplot

Several R packages provide an interface to query map services (Google Maps, Stamen Maps or OpenStreetMap) to obtain raster images …Continuar leyendo »

Read more »

Announcing Revolution R Enterprise 6.2

April 24, 2013
By
Announcing Revolution R Enterprise 6.2

We are pleased to announce that Revolution R Enterprise Release 6.2 is available to new subscribers today. This new software release from Revolution Analytics includes a number of key new features: Support for open source R 2.15.3, the latest stable release of R. Since Release 2.14.2, the R Project has added 89 new features, 11 performance enhancements and 139...

Read more »

Bank of England Fan Charts in R

April 24, 2013
By
Bank of England Fan Charts in R

I managed to catch David Spiegelhalter’s Tails You Win on BBC iplayer last week. I missed it the first time round, only for my parents on my last visit home to tell me about a Statistician jumping out of a … Continue reading →

Read more »

Prefer = for assignment in R

April 23, 2013
By
Prefer = for assignment in R

We share our opinion that = should be preferred to the more standard <- for assignment in R. This is from a draft of the appendix of our upcoming book. This has the risk of becoming an R version of Javascript’s semicolon controversy, but here you have it. R has five common assignment operators: “=“,Related posts:

Read more »

Disaggregating Annual Losses into Each Quarter

April 23, 2013
By
Disaggregating Annual Losses into Each Quarter

In loss forecasting, it is often necessary to disaggregate annual losses into each quarter. The most simple method to convert low frequency to high frequency time series is interpolation, such as the one implemented in EXPAND procedure of SAS/ETS. In the example below, there is a series of annual loss projections from 2013 through 2016.

Read more »

Learn how to analyze data with R with Coursera’s "Data Analysis" videos

April 23, 2013
By

If you didn't manage to catch Coursera's Data Analysis course, don't despair. Instructor Jeff Leek has made the course videos available on YouTube, which you can review at your leisure to learn how to plan, carry out, and communicate analyses of real data sets with R. (The course assumes you already have familiarity with R, so if you're new...

Read more »

Python Complements R’s Shortcomings

April 23, 2013
By
Python Complements R’s Shortcomings

I’m a big fan of open-source software for research. For example, R-statistics, Qgis, and Grass GIS are awesome programs. R can do any statistical tests and numerical modeling you can imagine; if there’s not a built-in function you can write … Continue reading →

Read more »

Slides from my R intro seminar

April 23, 2013
By
Slides from my R intro seminar

Here are my slides from a short introductory seminar on R (essentially going through part I of the R tutorial) last week. As magic lantern pictures go, they’re hideously ugly, but they were mostly there for future reference. Most of the seminar was spent showing RStudio. This Friday, we’ll practice some uses of qplot and make

Read more »