Monthly Archives: February 2012

R turns 12; R 2.14.2 is out

February 29, 2012
By

As promised by the R Core Group, R 2.14.2 is out. This is the final patchlevel of the R 2.14.x series (R 2.15.0 is due on March 30), and so R 2.14.2 will be the R engine for the next release of Revolution R Enterprise in a couple of months. Today also marks the...

Read more »

Massive Increase in Ethanol Production

February 29, 2012
By
Massive Increase in Ethanol Production

Description:Yearly production of Ethanol in the United States since 1980.Data:http://www.ethanolrfa.org/Analysis:When it comes to fuel - especially for transportation - oil is king. In 2010, the United States imported 180.8 billion gallons of crude oil...

Read more »

A Direct Marketing In-flight Forecasting System

February 29, 2012
By
A Direct Marketing In-flight Forecasting System

This is an edited version of A Direct Marketing In-flight Forecasting System. The original article was written by Shannon Terry and Ben Ogorekm, Nationwide Insurrance, in order to enter the “Applications of R in Business” contest organised by Revolution Analytics. This is the winning entry of the contest. I added some notes in the...

Read more »

Programatically rename files (or do other stuff to them) in R

February 29, 2012
By
Programatically rename files (or do other stuff to them) in R

In order to do something to a bunch of files at once, we first need a vector which contains the file paths of just the files we are interested in. startingDir<-"/myDirectory"filez<-list.files(startingDir,pattern="searchPattern")head(filez) "/m...

Read more »

Functional ANOVA using INLA – update

February 29, 2012
By
Functional ANOVA using INLA – update

INLA author Håvard Rue wrote me to point out a problem in the Functional ANOVA code given in this post. I made a mistake in setting the precision of the fixed effects (I used “default” instead of “prec”). I’ve put Håvard’s corrected version of the code below.  

Read more »

Graphical message boxes with R package tcltk

February 29, 2012
By
Graphical message boxes with R package tcltk

Sometimes you just need a graphical messagebox....know what I mean? If only because it pops up in front of all the other open windows and alerts you to the fact that your R script is waiting for you to do something, or is finished doing something else....

Read more »

ABC in Roma [R lab #1]

February 29, 2012
By
ABC in Roma [R lab #1]

Here are the R codes of the R labs organised by Serena Arima in supplement of my lectures. This is quite impressive and helpful to the students, as illustrated by the first example below (using the abc software). I am having a great time teaching this “ABC in Roma” course, in particular because of...

Read more »

Statistics project ideas for students

February 29, 2012
By

Here are a few ideas that might make for interesting student projects at all levels (from high-school to graduate school). I’d welcome ideas/suggestions/additions to the list as well. All of these ideas depend on free or scraped data, which means tha...

Read more »

XYZ geographic data interpolation, part 2

February 29, 2012
By
XYZ geographic data interpolation, part 2

Having recently received a comment on a post regarding geographic xyz data interpolation, I decided to return to my original "xyz.map" function and open it up for easier interpretation. This should make the method easier to adapt and follow.T...

Read more »

A minimum variance portfolio in 2011

February 29, 2012
By
A minimum variance portfolio in 2011

2011 was a good vintage for minimum variance, at least among stocks in the S&P 500. Previously The post “Realized efficient frontiers” included, of course, a minimum variance portfolio.  That portfolio seemed interesting enough to explore some more. “What does ‘passive investing’ really mean” suggests that minimum variance should be considered a form of...

Read more »