Ruby Script to parse ISBNs listed in R-Project to populate an Amazon

June 7, 2010
By
Ruby Script to parse ISBNs listed in  R-Project to populate an Amazon

As you probably figured out, I am an Amazon affiliate and have been giving some thought to how to get the best lists of R books available at Amazon. To get the list of ISBNs from R-Project, the following Ruby script did the trick:require 'rubygems'req...

Read more »

Example 7.40: Nelson-Aalen plotting

June 7, 2010
By
Example 7.40: Nelson-Aalen plotting

In our previous entry, we described how to calculate the Nelson-Aalen estimate of cumulative hazard. In this entry, we display the estimates for the time to linkage to primary care for both the treatment and control groups in the HELP study.RWe use the...

Read more »

An Interest Rate R Package Plan

An Interest Rate R Package Plan

I recently have done some empirical studies on zero-coupon bond modelling and pricing, and plan to create an interest rate R package in order to make it re-usable, as I find there are only two R package on it, one is http://cran.r-project.org/web/pack...

Read more »

Using R for Introductory Statistics 3.2

June 6, 2010
By
Using R for Introductory Statistics 3.2

...continuing my sloth-like progress through John Verzani's Using R for Introductory Statistics. Previous installments: Chapters 1 and 2 and 3.1. Comparing independent samples Boxplots provide a visual comparison between two or more distributions. Fo...

Read more »

Using R for Introductory Statistics 3.2

June 6, 2010
By
Using R for Introductory Statistics 3.2

...continuing my sloth-like progress through John Verzani's Using R for Introductory Statistics. Previous installments: Chapters 1 and 2 and 3.1. Comparing independent samples Boxplots provide a visual comparison between two or more distributions. Fo...

Read more »

biomaRt and GenomeGraphs: a worked example

June 6, 2010
By
biomaRt and GenomeGraphs: a worked example

As promised a few posts ago, another demonstration of the excellent biomaRt package, this time in conjunction with GenomeGraphs. Here’s what we’re going to do: Grab some public microarray data Normalise and get a list of the most differentially-expressed probesets Use biomaRt to fetch the genes associated with those probesets Plot the data using GenomeGraphs

Read more »

General steps to compile JAGS in a Linux based OS system and install rjags in R

June 6, 2010
By

I have an entry here about how to install JAGS and rjags in Fedora.  However, I have exchanged emails with Robert Dorazio and Dr. Martyn Plummer.  Here are the easier steps to compile JAGS and install rjags in R. 1. After you extract the source code...

Read more »

General steps to compile JAGS in a Linux based OS system and install rjags in R

June 6, 2010
By

I have an entry here about how to install JAGS and rjags in Fedora.  However, I have exchanged emails with Robert Dorazio and Dr. Martyn Plummer.  Here are the easier steps to compile JAGS and install rjags in R. 1. After you extract the source code...

Read more »

JAGS, rjags, and coda packages for Fedora

June 6, 2010
By

Christopher has the RPMs (for Fedora users) for JAGS, coda, and rjags on his blog. The specific blog entry is here: http://cddesjardins.wordpress.com/2010/06/04/jags-package-for-fedora-13-64-bit/ If you have trouble installing JAGS or rjags in Fedora,...

Read more »

JAGS, rjags, and coda packages for Fedora

June 6, 2010
By

Christopher has the RPMs (for Fedora users) for JAGS, coda, and rjags on his blog. The specific blog entry is here: http://cddesjardins.wordpress.com/2010/06/04/jags-package-for-fedora-13-64-bit/ If you have trouble installing JAGS or rjags in Fedora,...

Read more »

The 1000 most-visited sites analyzed using R

June 5, 2010
By
The 1000 most-visited sites analyzed using R

Ever wondered about which Computer and Electronics web sites get the most Page Views? Based upon data recently published by Google:The R program to create this graph is as follows:library(XML)# URL for the Google Datau="http://www.google.com/adplanner...

Read more »

static symbols too?

June 5, 2010
By

Continuing in the context of this previous post… 1. Select a static symbol from the R sources, like Connections $ grep "static Rconnection Connections" src/main/connections.c static Rconnection Connections; 2. Get its address $ objdump -t `R RHOME`/bin/exec/R | awk '/ Connections/ {print $1}' 000000000093b700 3. Use the symbol > library(inline) > code <- " +

Read more »

Free Online Statistics Books

June 5, 2010
By
Free Online Statistics Books

Sources as varied as Google's Chief Economist Hal Varian and threatening online personalty (offensive language warning) Zed Shaw have recognized a growing need for professionals with solid statistical skills to meet the technical challenges facing the ...

Read more »

“Programming with Data – a Guide to the S Language” by John Chambers

June 5, 2010
By
“Programming with Data – a Guide to the S Language” by John Chambers

Another unashamedly subjective book review - but first a little more about my history as it relates to R...A few years ago, I was doing some systems administration work at an industrial company for whom IT was a cost center. I wanted to illustrate to...

Read more »

GUI chart formatting with playwith

June 4, 2010
By
GUI chart formatting with playwith

There are a huge number of plots, annotations and parameters available in R for constructing charts and graphics. While looking through the R Programming wikibook I noticed a reference to a library called playwith. It provides a GUI that allows you ...

Read more »

On particle learning

June 4, 2010
By
On particle learning

In connection with the Valencia 9 meeting that started yesterday, and with Hedie‘s talk there, we have posted on arXiv a set of comments on particle learning. The arXiv paper contains several discussions but they mostly focus on the inevitable degeneracy that accompanies particle systems. When Lopes et al. state that is not of interest

Read more »

Hack-at-it 2010

June 4, 2010
By
Hack-at-it 2010

Members of the team met for the second time in 2010, to work on a new interactive graphics canvas for R. The current stage of the project can be found at R-forge: qtinterfaces contains the new canvas, and plumbr contains the new mutable data frame stru...

Read more »

Hack-at-it 2010

June 4, 2010
By
Hack-at-it 2010

Members of the team met for the second time in 2010, to work on a new interactive graphics canvas for R. The current stage of the project can be found at R-forge: qtinterfaces contains the new canvas, and plumbr contains the new mutable data frame stru...

Read more »

Because it’s Friday: Stochastic degradation

June 4, 2010
By

When you upload a video to YouTube, they don't store a perfect digital copy of your media file. The video is actually re-encoded into the MPEG-4 video format. This saves space on YouTube's servers, but also introduces some random degradation to the video (as a result of the lossy compression process). So what happens if you then save that...

Read more »

Connecting Revolution R to MySQL on Windows

June 4, 2010
By

My colleague Saar Golde was having some troubles connecting Revolution R to MySQL on Windows (64-bit). Turned out the problem was the lack of an environment variable. He documented the instructions for fixing the problem on Windows 7, below. Thanks, Saar! The Problem: A client is about to send me a couple of large MySQL tables, so I needed...

Read more »

Advanced debugging techniques in R

June 4, 2010
By

Harlan Harris provides an interactive introduction to more advanced debugging techniques using traceback(), trace() and debug(). This talk was presented to the NYC R Statistical Programming Meetup on June 3, 2010. Code from Harlan's talk is available...

Read more »

Debugging basics in R

June 4, 2010
By

Jay Emerson, professor of statistics at Yale University, introduces basic core functions for simple debugging in R, including print(), cat() and browser(). This talk was presented at the NYC R Statistical Programming Language Meetup on June 3, 2010.

Read more »

How to Create an R Package in Windows

How to Create an R Package in Windows

There are many reasons to create an R package, such as codes protection, convenient usage, etc. However, creating an R package in Unix is not hard, it IS in Windows, as R is designed in a Unix environment which includes a set of compilers, programming utilities, and text-formatting routines while Windows lacks those. I used to build an R...

Read more »

inline 0.3.5

June 3, 2010
By

Yesterday morning, Romain pushed inline release 0.3.5 to CRAN. This is some ways a continuation of the 0.3.4 release I had made in December. That release had opened the door for the wide use of inline in our Rcpp package. And just how Rcpp has grown, ...

Read more »

inline 0.3.5

Yesterday morning, Romain pushed inline release 0.3.5 to CRAN. This is some ways a continuation of the 0.3.4 release I had made in December. That release had opened the door for the wide use of inline in our Rcpp package. And just how Rcpp has gro...

Read more »

Tracking JAXA Arctic Sea Ice Extent Trends

June 3, 2010
By
Tracking JAXA Arctic Sea Ice Extent Trends

See my Arctic Update Page for daily updates on Arctic Sea Ice Extent Arctic Sea Ice Extent (SIE) follows an annual cycle, with maximum levels usually in March and minimum values in September.  Many analysts use day-of-year charts to compare … Co...

Read more »

Introductory Statistics with R

June 3, 2010
By
Introductory Statistics with R

I am in the process of reading several books on R, S or statistics. I can't say that I have completed any of these - at least to the depth that I would like to... but I have found them helpful up to this point in various ways. I'll add to these book...

Read more »

Making Data Work online conference

June 3, 2010
By

O'Reilly is hosting a conference on June 9 on the topic of the analysis of large data sets. The title of the conference is Making Data Work: Ever since Hal Varian proclaimed that data analysis is the sexy career for the coming decade, people have been talking about data. And big data. And even bigger data. This online conference,...

Read more »

MODIS processing with R, GDAL, and the NCO tools

June 3, 2010
By
MODIS processing with R, GDAL, and the NCO tools

I use MODIS data for analysis of vegetation dynamics around the world.  The native HDF file format provided by NASA is great for archiving the data (it's amazing how much information they include in each file), but unfortunately there aren't many tools for directly (and easily) extracting data stored across files like there are for the

Read more »