## My first R package: zipcode

January 5, 2011
By

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

## sab-R-metrics: Introduction to R

January 5, 2011
By

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...

## sab-R-metrics: Introduction to R

January 5, 2011
By

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...

## R-bloggers

January 5, 2011
By

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.

## New approach to analysis of phylogenetic community structure

January 5, 2011
By

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...

January 5, 2011
By

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

## 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...

## Customizing the Theme of Your R HTML Help

January 4, 2011
By

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

## 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...

## Revised market prediction distributions

January 4, 2011
By

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...

## Creating prediction distributions

January 4, 2011
By

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...

## Customizing the Theme of Your R HTML Help

January 4, 2011
By

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...

## 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?

## 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

## 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...

## Example 8.19: Referencing lists of variables

January 3, 2011
By

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...

## Exporting KML from R

January 2, 2011
By

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...

## LaTeX Typesetting – Tables

January 2, 2011
By

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

## 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...

## 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...

## 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

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

January 1, 2011
By

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...

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

January 1, 2011
By

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...

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

January 1, 2011
By

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

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

January 1, 2011
By

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,

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

January 1, 2011
By

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...

## 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

## 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

## Happy New Year with R (2011, Fireworks!)

January 1, 2011
By

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...