My first R package: zipcode

January 5, 2011
By
My first R package: zipcode

My first package, zipcode, is now available on CRAN. It contains the CivicSpace database of 43,191 U.S. zip codes.

Read more »

sab-R-metrics: Introduction to R

January 5, 2011
By
sab-R-metrics: Introduction to R

In a recent post, I briefly mentioned that I may turn a majority of the focus of this blog to teaching R commands for use with sabermetric analysis. Only a few days later, Ricky Zanker began a new column at The Hardball Times doing just that. But that's okay. Hopefully both his and mine...

Read more »

sab-R-metrics: Introduction to R

January 5, 2011
By
sab-R-metrics: Introduction to R

In a recent post, I briefly mentioned that I may turn a majority of the focus of this blog to teaching R commands for use with sabermetric analysis. Only a few days later, Ricky Zanker began a new column at The Hardball Times doing just that. But that's okay. Hopefully both his and mine...

Read more »

R-bloggers

January 5, 2011
By
R-bloggers

Just a quick FYI note in case you haven't seen this site.R-bloggers is an awesome site, bringing together more than 140 blogs (including mine) about R in a single location. See Tal Galili's motivation for creating the site, and his notes on the site here.

Read more »

New approach to analysis of phylogenetic community structure

January 5, 2011
By
New approach to analysis of phylogenetic community structure

Anthony Ives, of University of Wisconsin-Madison, and Matthew Helmus of the Xishuangbanna Tropical Botanical Garden, present a new statistical method for analyzing phylogenetic community structure in an early view paper in Ecological Monographs. See th...

Read more »

Adap’skiii [day 2]

January 5, 2011
By
Adap’skiii [day 2]

Another exciting day at Adap’skiii!!! Yves Atchadé presented a very recent work on the fundamental issue of estimating the asymptotic variance estimation for adaptive MCMC algorithms, with an intriguing experimental observation that a non-converging bandwidth with rate 1/n was providing better coverage than the converging rate. (I always found the issue of estimating the asymptotic

Read more »

How many gifts did my true love give to me on all twelve nights…

January 5, 2011
By

How many gifts did my true love give to me on all twelve nights of Christmas? After seeing Information is Beautiful’s recent information animation, I decided that I’d make my own. I used R to generate a PDF and then did a screencast of the PDF with ffmpeg to make a video with the appropriate timings. The code for the PDF...

Read more »

Customizing the Theme of Your R HTML Help

January 4, 2011
By
Customizing the Theme of Your R HTML Help

R’s default theme of the HTML help pages is too plain for me to read, but we can easily modify the theme, which is essentially a CSS file. You can find the file under: file.path(R.home('doc'), 'html', 'R.css') Simply replace this file with my version: which looks like: Of course you can design your own R.css

Read more »

The R Journal: December 2010

January 4, 2011
By

Issue 2 of The R Journal (the peer-reviewed journal devoted to R) was published over the Christmas break. In addition to news about the latest release of R, it also includes contributed articles on using GPU processing to fit Bayesian models in R, processing text data in R, solving differential equations in R, and much more. Follow the link...

Read more »

Revised market prediction distributions

January 4, 2011
By
Revised market prediction distributions

This provides revised plots of the prediction distributions published yesterday.  The previous plots of prediction distributions should be ignored — they are not doing as advertised. We show the prediction distribution of levels of several equity indices (plus oil price) at the end of 2011 assuming nothing happens.  That is, we’ve taken out market trends … Continue reading...

Read more »

Creating prediction distributions

January 4, 2011
By
Creating prediction distributions

Here we give details and code for the prediction distributions exhibited in yesterday’s blog post Tis the season to predict. Eight years of returns The equity indices use daily closing levels from the start of 2003.  This data comes from Yahoo. A roughly equivalent technique of selecting the last 2000 daily prices is used for … Continue reading...

Read more »

Customizing the Theme of Your R HTML Help

January 4, 2011
By
Customizing the Theme of Your R HTML Help

R's default theme of the HTML help pages is too plain for me to read, but we can easily modify the theme, which is essentially a CSS file. You can find the file under: file.path(R.home('doc'), 'html', 'R.css') Simply replac...

Read more »

How many of each gift did my true love give to me?

January 4, 2011
By
How many of each gift did my true love give to me?

How many of each gift did my true love give to me?

Read more »

Gifts my true love gave to me on all twelve days of Christmas

January 4, 2011
By
Gifts my true love gave to me on all twelve days of Christmas

Gifts my true love gave to me on all twelve days of Christmas

Read more »

First meeting of Toronto R User Group this Friday

January 3, 2011
By

The Greater Toronto Area R User Group is having its inaugural meeting this Friday, January 7. The meeting will feature Ben Bolker, professor and author of Ecological Models and Data in R, who will speak on Generalized Linear Models. It's also your opportunity to join the group and help define its future path, so if you're in the area...

Read more »

Example 8.19: Referencing lists of variables

January 3, 2011
By
Example 8.19: Referencing lists of variables

In section 1.11.4 (p. 50), we discuss referring to lists of variables in a data set. In SAS, this can be done for variable stored in adjacent columns with the "var_x -- var_y" syntax and for variables with sequentially enumerated suffixes with the "va...

Read more »

Exporting KML from R

January 2, 2011
By
Exporting KML from R

Google Earth has become a popular way of disseminating spatial data. KML is the data format required to do this. It is possible to load almost any type of spatial...

Read more »

LaTeX Typesetting – Tables

January 2, 2011
By
LaTeX Typesetting – Tables

One area of LaTeX that is not always straightforward is producing tabular material. In this post we will look at some of the basics of creating tables in a LaTeX document. Fast Tube by Casper When creating tables there is a tabular environment that can be used and we need to specify the number of

Read more »

Animation from Kaggle traffic prediction competition

January 2, 2011
By

Below: two animations (same one twice, just as different speeds) I made from the highway data for the Kaggle traffic prediction competition.The data are travel times for 61 different sections of Sydney's M4 freeway, in both directions. The data comes i...

Read more »

Animation from Kaggle traffic prediction competition

January 2, 2011
By

Below: two animations (same one twice, just as different speeds) I made from the highway data for the Kaggle traffic prediction competition.The data are travel times for 61 different sections of Sydney's M4 freeway, in both directions. The data comes i...

Read more »

Le Monde puzzle [52|solution]

January 1, 2011
By
Le Monde puzzle [52|solution]

I have now received the first issue of Le Monde magazine, including the solution to puzzle #52 I solved just in time by simulated annealing! The trick is in using the following theorem: Iter(1,x,y) is divisible by 10x-1 if and only if y is divisible by 10x-1. Then the value to be found is divisible

Read more »

Ten News Stories of 2010 – and the Statistics that Made Them

January 1, 2011
By
Ten News Stories of 2010 – and the Statistics that Made Them

Significance MagazineAccording to Significance Magazine (jointly published by Royal Statistical Society and the American Statistical Association) the following are the top ten stories of 2010.1. Progress in the preven...

Read more »

Ten News Stories of 2010 – and the Statistics that Made Them

January 1, 2011
By
Ten News Stories of 2010 – and the Statistics that Made Them

Significance MagazineAccording to Significance Magazine (jointly published by Royal Statistical Society and the American Statistical Association) the following are the top ten stories of 2010.1. Progress in the preven...

Read more »

R-bloggers in 2010: Top 14 R posts, site statistics and invitation for sponsors

January 1, 2011
By
R-bloggers in 2010: Top 14 R posts, site statistics and invitation for sponsors

A year ago (on December 9th 2009), I wrote about founding R-bloggers.com, an (unofficial) online R journal written by bloggers who agreed to contribute their R articles to the site. In this post I wish to celebrate R-bloggers’ first birthday by sharing with you: Links to the top 14 posts of 2010 Reflections about the origin of R-bloggers Statistics

Read more »

Review: Statistical Analysis with R: Beginner’s Guide by John M. Quick

January 1, 2011
By
Review: Statistical Analysis with R: Beginner’s Guide by John M. Quick

Summary: If you can get past the strange underlying story, then this gives a good introduction to R to someone with no programming experience. However, if you have any experience with other programming languages then another book is likely to be more suitable. Reference: Quick, J. M., Statistical Analysis in R: Beginners Guide, Packt Publishing,

Read more »

Nov 2010 Year-To-Date Global Temperature Anomaly 1st in 2 Series, 2nd in 3 Series: Update

January 1, 2011
By
Nov 2010 Year-To-Date Global Temperature Anomaly 1st in 2 Series, 2nd in 3 Series: Update

This post shows the YTD global land – ocean temperature anomaly (LOTA) trends for the 5 major series through November, 2010 and how  2010 YTD ranks over the entire record for each series.  The source data  file link is provided. … Contin...

Read more »

Single variable optimization

January 1, 2011
By

Optimization means to seek minima or maxima of a funtion within a given defined domain. If a function reach its maxima or minima, the derivative at that point is approaching to 0. If we apply Newton-Raphson method for root finding to f’, we can get the optimizing f. Read More: 223 Words Totally

Read more »

Single variable optimization

January 1, 2011
By

Optimization means to seek minima or maxima of a funtion within a given defined domain. If a function reach its maxima or minima, the derivative at that point is approaching to 0. If we apply Newton-Raphson method for root finding to f’, we can get the optimizing f. Read More: 223 Words Totally

Read more »

Happy New Year with R (2011, Fireworks!)

January 1, 2011
By
Happy New Year with R (2011, Fireworks!)

Last year I posted an animation created in R to celebrate the new year, and this year I've got a more fabulous animation (available on CRAN) The above animation comes from the demo('fireworks') in the R package animation 2.0-0. Thanks for the contri...

Read more »