The Global Earthquake Desktop

November 25, 2011
By
The Global Earthquake Desktop

One of the first things I do over coffee each morning is scroll through the USGS earthquake RSS feeds.  In the era of free data and open source computing I asked myself, "Wouldn't it be better to visualize all of the earthquakes around the world r...

Read more »

..Some More Regex Examples Added to Collection

November 25, 2011
By
..Some More Regex Examples Added to Collection

Find the below examples added to my list of regex-examples HERE. Read more »

Read more »

Working with isTRUE

November 25, 2011
By
Working with isTRUE

This week I was running computations transforming some input files into output files. The problem was that it was a repeated process. If new input files were generated or old ones were updated I needed to calculate new output files. The transformation ...

Read more »

ConPA uses cloudnumbers.com as calculation backend

November 25, 2011
By
ConPA uses cloudnumbers.com as calculation backend

ConPA is an asset allocation application using the classic Markowitz approach. For the calculations the open-source statistical programming language R is used. R scripts are executed on cloudnumbers.com’s computer clusters in the Cloud and the results are displayed by ConPA frontend. ConPA allows to set the investment date of the portfolio, the target return and

Read more »

Sending Email from R (using sendEmail)

November 25, 2011
By
Sending Email from R (using sendEmail)

Like a lot of other R users I’ve felt the need for sending email from R. I haven’t surveyed CRAN for such a package but looked for the possibility of sending command line email in Windows. Found a nice application called sendEmail that can be found here Below are code snippets in R that will

Read more »

Pseudo-Random vs. Random Numbers in R

November 25, 2011
By
Pseudo-Random vs. Random Numbers in R

Earlier, I found an interesting post from Bo Allen on pseudo-random vs random numbers, where the author uses a simple bitmap (heat map) to show that the rand function in PHP has a systematic pattern and compares these to truly random numbers obtained from random.org. The post’s results suggest that pseudo-randomness in

Read more »

Pseudo-Random vs. Random Numbers in R

November 25, 2011
By
Pseudo-Random vs. Random Numbers in R

Happy Thanksgiving, everyone. Earlier today, I found an interesting post from Bo Allen on pseudo-random vs random numbers, where the author uses a simple bitmap (heat map) to show that the rand function in PHP has a systematic pattern and compares these to truly random numbers obtained from random.org. The post’s results suggest that pseudo-randomness in PHP is

Read more »

Introduction to Backtesting library in the Systematic Investor Toolbox

November 24, 2011
By
Introduction to Backtesting library in the Systematic Investor Toolbox

I wrote a simple Backtesting library to evaluate and analyze Trading Strategies. I will use this library to present the performance of trading strategies that I will study in the next series of posts. It is very easy to write a simple Backtesting routine in R, for example: The code I implemented in the Systematic

Read more »

Matrix Package Doodling

November 24, 2011
By

Trying not to fall into Thanksgiving Day, football, coma.  So I started looking at the Matrix package.Started out by changing my code from before to create a matrix using the Matrix() function from the Matrix package.n = 4000c = Matrix(.9,n,n)for(...

Read more »

Matrix Package Doodling

November 24, 2011
By
Matrix Package Doodling

Trying not to fall into Thanksgiving Day, football, coma.  So I started looking at the Matrix package.Started out by changing my code from before to create a matrix using the Matrix() function from the Matrix package.n = 4000c = Matrix(.9,n,n)for(...

Read more »

bounded normal mean

November 24, 2011
By
bounded normal mean

A few days ago, one of my students, Jacopo Primavera (from La Sapienza, Roma) presented his “reading the classic” paper, namely the terrific bounded normal mean paper by my friends George Casella and Bill Strawderman (1981, Annals of Statistics). Even though I knew this paper quite well, having read (and studied) it myself many times,

Read more »

A Function for Adding up Matrices with Different Dimensions

November 24, 2011
By
A Function for Adding up Matrices with Different Dimensions

I was unlucky finding a function that can handle matrices with different dimensions. Thus, I coded a little function that sums up matrices, also coping with matrices with different dimensions.Read more »

Read more »

Book shoppin’…

November 24, 2011
By
Book shoppin’…

I honestly have no book on R programming. In fact I have not a single book on programming at all (my coding proves that ;x). I am pretty sure that I am gonna order (just did!) that book. You can get a look of Matloff’s text here (= pdf for ya)

Read more »

Book shoppin’…

November 24, 2011
By
Book shoppin’…

I honestly have no book on R programming. In fact I have not a single book on programming at all (my coding proves that ;x). I am pretty sure that I am gonna order (just did!) that book. You can get a look of Matloff’s text here (= pdf for ya)

Read more »

Bringing 64-bit data to R

November 24, 2011
By
Bringing 64-bit data to R

The R programming language has become one of the standard tools for statistical data analysis and visualization, and is widely used by Google and many others. The language includes extensive support for working with vectors of integers, numerics (doubles), and many other types, but has lacked support for 64-bit integers. ...

Read more »

“Home Runs by Park – 2011 Season” or “Man the Astros Sucked This Year”

November 24, 2011
By
“Home Runs by Park – 2011 Season” or “Man the Astros Sucked This Year”

I hate the Giants. Let this be known. What i was hoping to find was another reason to support my claim that their WS win in 2010 was a complete fluke.  So when digging through the game logs for the … Continue reading →

Read more »

Happy Thanksgiving!

November 24, 2011
By

It's Thanksgiving day here in the US: > library(timeDate) > holiday(2011,"USThanksgivingDay") GMT So we're taking a little break today here at Revolutions. We have a special "Because it's Friday" post queued up for tomorrow, and then we'll be back to the usual schedule on Monday. For readers in the US, enjoy the Thanksgiving holiday!

Read more »

Define intermediate color steps for colorRampPalette

November 24, 2011
By
Define intermediate color steps for colorRampPalette

The following function, color.palette(), is a wrapper for colorRampPalette() and allows some increased flexibility in defining the spacing between main color levels. One defines both the main color levels (as with colorRampPalette) and an optional vector containing the number of color levels that should be put in between at equal distances.     The above...

Read more »

Empirical Orthogonal Function (EOF) Analysis for gappy data

November 24, 2011
By
Empirical Orthogonal Function (EOF) Analysis for gappy data

The following is a function for the calculation of Empirical Orthogonal Functions (EOF). For those coming from a more biologically-oriented background and are familiar with Principal Component Analysis (PCA), the methods are similar. In the climate sciences the method is usually used for the decomposition of a data field into dominant spatial-temporal modes. Read...

Read more »

source_https(): Sourcing an R Script from github over HTTPS

November 24, 2011
By
source_https(): Sourcing an R Script from github over HTTPS

The Objective I wanted to source R scripts hosted on my github repository for use in my blog (i.e. a github version of ?source). This would make it easier for anyone wishing to test out my code snippets on their own computers without having to manually go to my github repo and retrieve a series of R

Read more »

If you are writing a book on Bayesian statistics

November 23, 2011
By

This post is somewhat marginal to R in that there are several statistical systems that could be used to tackle the problem. Bayesian statistics is one of those topics that I would like to understand better, much better, in fact. … Continue reading →

Read more »

Andrew gone NUTS!

November 23, 2011
By
Andrew gone NUTS!

Matthew Hoffman and Andrew Gelman have posted a paper on arXiv entitled “The No-U-Turn Sampler: Adaptively Setting Path Lengths in Hamiltonian Monte Carlo” and developing an improvement on the Hamiltonian Monte Carlo algorithm called NUTS (!). Here is the abstract: Hamiltonian Monte Carlo (HMC) is a Markov chain Monte Carlo (MCMC) algorithm that avoids the

Read more »

DecisionStats review of Revolution R Enterprise 5.0

November 23, 2011
By

At the DecisionStats blog, Ajay Ohri has published his review of Revolution R Enterprise 5.0. The review includes a slideshow highlighting some of the features of the new release, including the expanded code snippets manager and the new cluster job manager. It's well worth checking out if you'd like a quick overview of what's new in the latest release....

Read more »

The ‘swst’ package to print statistical results in Sweave

November 23, 2011
By

When I was making the slides for a lecture on using Sweave to incorporate R and LaTeX I was unpleasantly surprised at how tedious it can be to extract statistical values and print them in proper LaTeX code. For example, consider a … Continue reading →

Read more »

Materials of the “LaTeX for Psychological Researchers” course

November 23, 2011
By

I have given a course on using LaTeX for psychological researchers. This course consisted of four lectures in which I discussed the following subjects: how to obtain a LaTeX distribution How to use LaTeX to write professional scientific reports How to use … Continue reading →

Read more »

Prague Half Marathon Ranking: 2% or 25% missing?

November 23, 2011
By
Prague Half Marathon Ranking: 2% or 25% missing?

I am a regular participant of Prague International Half Marathon. In a mass event like this the horde of runners needs a long time to reach the starting line. To make the times mutually comparable the “start time” is measured and afterwards subtracted from the “finish time”. Also the crowd is organized to corridors in such...

Read more »

An R function to analyze your Google Scholar Citations page

November 23, 2011
By
An R function to analyze your Google Scholar Citations page

Google scholar has now made Google Scholar Citations profiles available to anyone. You can read about these profiles and set one up for yourself here. I asked John Muschelli and Andrew Jaffe to write me a function that would download my Google Scholar...

Read more »

Updating CODA – a possible post-doctoral project

November 23, 2011
By
Updating CODA – a possible post-doctoral project

If you are looking for a post-doctoral position in statistical computing in 2012 then you may be able to help me with rewriting the coda package for R.  But if you are interested, you don’t have much time to apply.The … Continue reading →

Read more »

Volume by Price Charts using R

November 23, 2011
By
Volume by Price Charts using R

R-Bloggers is a wonderful site which offers some great ideas for analysis.While I have been busy of late, hence could not do much with R, I was inspired by this post by Eric Nguyen on Volume by Price chart. This chart can be used with a great effe...

Read more »