More football

October 29, 2012
By

Given that Sampdoria have lost their fourth game in a row, I am not really interested in football any more (as of yesterday, I actually find it a very boring game and think we should focus on real sports $-$ of course if we manage to break the cra...

Read more »

‘Sandy’ Code Up On Github

October 29, 2012
By
‘Sandy’ Code Up On Github

UPDATE: As indicated in the code comments, Google took down the cone KML files. I’ll be changing the code to use the NHC archived cone files later tonight I will (most likely) not be littering the blog with any more updates to the ‘Sandy’ code unless they are really significant. You can follow along at

Read more »

Volatility from daily or monthly: garch evidence

October 29, 2012
By
Volatility from daily or monthly: garch evidence

Should you use daily or monthly returns to estimate volatility? Does garch explain why volatility estimated with daily data tends to be bigger than if it is estimated with monthly data? Previously There are a number of previous posts — with the variance compression tag — that discuss the phenomenon of volatility estimated with daily … Continue reading...

Read more »

How Scenic is the HS2 Route?

October 29, 2012
By
How Scenic is the HS2 Route?

It is fairly clear from the duration between this and my last post that various other things have been getting in the way of updates. Anyway, I shall try and post a few updates on news and things I have been working on recently in the coming weeks before getting back to regular posting! Back

Read more »

googleVis 0.3.2 is released: Better integration with knitr

October 29, 2012
By
googleVis 0.3.2 is released: Better integration with knitr

After last week's kerfuffle I hope the roll out of googleVis version 0.3.2 will be smooth. To test the water I release this version into the wild here and if it doesn't get shot down in the next days, then I shall try to upload it to CRAN. I am mindful...

Read more »

How Scenic is the HS2 Route?

October 29, 2012
By
How Scenic is the HS2 Route?

It is fairly clear from the duration between this and my last post that various other things have been getting in the way of updates. Anyway, I shall try and post a few updates on news and things I have been working on recently in the coming weeks befo...

Read more »

Visiting FHCRC, JHSPH and Meeting Xi’an

October 29, 2012
By
Visiting FHCRC, JHSPH and Meeting Xi’an

I have been traveling during the last two weeks. I visited Fred Hutchinson Cancer Research Center on Oct 16 and the Department of Biostatistics at Johns Hopkins at the invitation of Simply Statistics on Oct 23. Today Christian Robert was visiting our department at Iowa State, and I also talked to him. It is really cool...

Read more »

Build Static HTML Help Pages for R Packages

October 29, 2012
By
Build Static HTML Help Pages for R Packages

Many R users may still remember the good old days when we had static HTML documentation for R packages. That was probably before R 2.10.0 (in 2009). Then we had the fancy dynamic HTML help based on the built-in httpd server, but it has never really mad...

Read more »

How Scenic is the HS2 Route?

October 28, 2012
By
How Scenic is the HS2 Route?

It is fairly clear from the duration between this and my last post that various other things have been getting in the way of updates. Anyway, I shall try and post a few updates on news and things I have been working on recently in the coming weeks befo...

Read more »

the large half now

October 28, 2012
By
the large half now

The little half puzzle proposed a “dumb’ solution in that players play a minimax strategy. There are 34 starting values less than 100 guaranteeing a sure win to dumb players. If instead the players maximise their choice at each step, the R code looks like this: and there are now 66 (=100-34, indeed!) starting values

Read more »

Preview version of RStudio 0.97 is now available

October 28, 2012
By

Rstudio has changed its website extension from rstudio.org to rstuido.com/ide and kept its new preveiw version at below link, few new things as "package development" tools are included in this version that makes job easy to develop new package.http:/...

Read more »

Mixed distribution

October 28, 2012
By

In the football data there was some reason to use a mixed distribution in the football data (ref) so I tried doing that. It was more difficult than I expected. Not only is a mixture of distributions fairly difficult, also the system was over parameteri...

Read more »

Animated map of 2012 US election campaigning, with R and ffmpeg

October 28, 2012
By

(Video link here, in case the embedded player doesn’t work for you.) Idea: see if I can mimic the idea behind Ben Schmidt’s lovely video of ocean shipping routes, and apply it to another dataset. But which? “Hmm… what’s another … Continue reading →

Read more »

Watch Sandy in “R” (Including Forecast Cone)

October 28, 2012
By
Watch Sandy in “R” (Including Forecast Cone)

As indicated in the code comments, Google took down the cone KML files. I’ll be changing the code to use the NHC archived cone files later tonight NOTE: There is significantly updated code on github for the Sandy ‘R’ dataviz. This is a follow-up post to the quickly crafted Watch Sandy in “R” post last

Read more »

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 their blog: Digithead's Lab Notebook. R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming...

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 »

Javascript and D3 for R users, part 2: running off the R server instead of Python

October 26, 2012
By

Thank you all for the positive responses to Basics of JavaScript and D3 for R Users! Quick update: last time we had to dabble in a tiny bit of Python to start a local server, in order to actually run JavaScript … Continue reading →

Read more »

Plotting correlation ellipses

October 26, 2012
By
Plotting correlation ellipses

This is an oldie but a goodie. There are a lot of ways to plot multiple bivariate relationships, but this is one of my favorites, courtesy of the R Graph Gallery. https://gist.github.com/819111

Read more »

NSCB Sexy Stats Version 2

October 25, 2012
By
NSCB Sexy Stats Version 2

This was a revised version of my previous post about the NSCB article. With the suggestion from Tal Galili, below were the new pie charts and the R codes to produce these plots by directly scrapping the data from the webpage using XML and RColorBrewer ...

Read more »

Using FAFSA Data to study Competitors – Part 2

October 25, 2012
By
Using FAFSA Data to study Competitors – Part 2

I wanted to build upon my previous post and dive a little deeper into the sorts of questions we can answer using the FAFSA data supplied to us by applicants. As a quick overview, students completing the FAFSA for student aid can list up to ten institutions on the form. I consider this the student’s

Read more »

Modeling Couch Potato strategy

October 25, 2012
By
Modeling Couch Potato strategy

I first read about the Couch Potato strategy in the MoneySense magazine. I liked this simple strategy because it was easy to understand and easy to manage. The Couch Potato strategy is similar to the Permanent Portfolio strategy that I have analyzed previously. The Couch Potato strategy invests money in the given proportions among different

Read more »

Sponsors