Monthly Archives: October 2012

Replicating Krugman (Pt. 1)

October 27, 2012
By

I'm a regular reader of Paul Krugman's NYT blog. A couple of months ago I decided to replicate some of the plots Paul published. At the time I was evaluating the quantmod package which seemed to made things easy. An easy startIn the first part I'll rep...

Read more »

Watch “Sandy” In R

October 27, 2012
By
Watch “Sandy” In R

UPDATE: Significantly updated code on githubWell, a couple folks asked how to make it more “centered” on the hurricane and stop the labels from chopping off, so I modified the previous code a bit to show how to do that. As indicated in the code comments, Google took down the cone KML files. I’ll be

Read more »

the little half (another Le Monde puzzle)

October 27, 2012
By
the little half (another Le Monde puzzle)

I found this Le Monde puzzle of June 16 I had stored and then somehow forgotten with my trips to Japan and Australia: There are n beans in a box, with 98≤n≤102). Two players take at each round either one bean from the box or “the little half” (i.e. the integral part of the half)

Read more »

Characterizing a new dataset

In my last post, I promised a further examination of the spacing measures I described there, and I still promise to do that, but I am changing the order of topics slightly.  So, instead of spacing measures, today’s post is about the DataframeSummary procedure to be included in the ExploringData package, which I also mentioned in my last post...

Read more »

Feature selection and linear modeling

October 27, 2012
By

(This article was first published on Digithead's Lab Notebook, and kindly contributed to R-bloggers) To leave a comment for the author, please follow the link and comment on his blog: Digithead's Lab Notebook. R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git,...

Read more »

.Rhistory

October 27, 2012
By

Over the last couple of years I've been using R every now and then. When I stumbled upon an interesting topic, and I managed to get a hold of a data set, I tried to make sense of it using R.It's a bit like the Stat Labs approach: I might get started by...

Read more »

Book Review: R for Business Analytics, A Ohri

October 26, 2012
By
Book Review:    R for Business Analytics,    A Ohri

      I've added a recently released book to my list of recommendations (at the amazon carousel to the right), as I've reviewed a copy provided to me via Springer Publishers. The book is R for Business Analytics, authored by A Ohri.&nbsp...

Read more »

A Greedy ARMA/GARCH Model Selection

October 26, 2012
By

An idea that I have been toying for a while, has been to study the effect of a domain-specific optimization strategy in the ARMA+GARCH models. If you recall from this long tutorial, the implemented approach cycles through all models within a the specified ranges for the parameters and chooses the best model based on the

Read more »

R 2.15.2 now available

October 26, 2012
By

As promised, the source distribution for R 2.15.2 is now available for download from the master CRAN repository. (Binary distributions for Windows, MacOS and Linux will be available from the CRAN mirror network in the coming days.) This latest point-update — codenamed "Trick or Treat" — improves the performance of the R engine and adds a few minor but...

Read more »

Chris Hamm on using plot.new() for better combined plots

October 26, 2012
By
Chris Hamm on using plot.new() for better combined plots

At DRUG today, Chris Hamm (email (cahamm at ucdavis dot edu)) showed us an easier way to combine multiple figures into one plot using plot.new, rather than par(mfrow=...) Here’s his script: A Report Generated by knitr # plot.new() [email protected] #I discovered this plotting method when trying to add an inset figure # to a plot # plot.new is part of the traditional graphics....

Read more »