Go Guerrill-R on Your Data

May 31, 2011
By
Go Guerrill-R on Your Data

The Guerrilla Data Analysis Techniques training course (GDAT) will be held during the week of August 8-12 this year. As usual, the focus will be on applying R to your performance and capacity planning data, as well as how to use the PDQ-R modeling too...

Read more »

sab-R-metrics: GIF Movies and Pitch Flights (Guest Post)

May 31, 2011
By
sab-R-metrics: GIF Movies and Pitch Flights (Guest Post)

A couple weeks ago, I received an email from a fellow Pitch F/Xer and R-User, Josh Weinstock, asking if I was interested in a guest post here at Prince of Slides. I didn't think I was important enough to have talented guests posting at my blog; howeve...

Read more »

Recreational R: Simulating a Card Trick

May 30, 2011
By
Recreational R: Simulating a Card Trick

In this post, I simulate an interesting card trick, which was described by a friend of mine named Xan. Here's Xan's description of the card trick:I put a deck of cards down face up on the table. Meanwhile you think of a secret number between 1 and 1...

Read more »

Recreational R: Simulating a Card Trick

May 30, 2011
By
Recreational R: Simulating a Card Trick

In this post, I simulate an interesting card trick, which was described by a friend of mine named Xan. Here's Xan's description of the card trick:I put a deck of cards down face up on the table. Meanwhile you think of a secret number between 1 and 1...

Read more »

More St. Louis Fred Fun with National Financial Conditions

May 30, 2011
By
More St. Louis Fred Fun with National Financial Conditions

I owe someone at the Fed a beer for all the recent additions at http://research.stlouisfed.org/fred2/.  I have covered some in Spreads and Stress and Gifts from BAC ML and the Federal Reserve.  The newest addition 8 Chicago Fed Indexes Added ...

Read more »

digest 0.5.0

A new version of the digest package (which generates hash function summaries for arbitrary (and possibly nested) R objects using any of the standard md5, sha-1, sha-256 or crc32 algorithms) is now on CRAN. Thanks to a patch by Mario Frasca, digest ...

Read more »

map.xyz(): interpolation of XYZ data and projection onto a map

May 30, 2011
By
map.xyz(): interpolation of XYZ data and projection onto a map

     I am still struggling to get a grasp of R's mapping capabilities. Part of my frustration lies in the fact that I often work on areas near the poles, which complicates interpolation across the 180 degree line. For smaller areas, interpolati...

Read more »

Legendre & Borcard: Nested ANOVA by Permutation

May 30, 2011
By
Legendre & Borcard: Nested ANOVA by Permutation

..here's a very illustrative R-Script example by Legendre & Borcard showing how a Nested ANOVA can be done by permutation.Read more »

Read more »

Array position to matrix coordinates conversion

May 30, 2011
By
Array position to matrix coordinates conversion

#A function that is sometimes useful in determining the #coordinate(i.e. row and column number) of a matrix position#(and vice-versa). #Either a vector of positions ("pos") #OR a 2 column matrix of matrix coordinates, ("coord", i.e. cbind(row,col)), #A...

Read more »

XLConnect 0.1-4

May 30, 2011
By
XLConnect 0.1-4

Mirai Solutions GmbH (http://www.mirai-solutions.com) is pleased to release XLConnect 0.1-4. In the time since our first release (XLConnect 0.1-3, released on Feb 28, 2011) we received very positive and constructive feedback from the R community which heavily influenced the development … Continue reading →

Read more »

Searching for inaccurate literals in R

May 29, 2011
By
Searching for inaccurate literals in R

In creating the numbers tool I wanted to be able to do two things, 1) obtain information about what source did by matching the numeric literals it contained against a database of ‘interesting’ values (now with over 14,000 entries) and 2) flag possible incorrect numeric literals (e.g., 3.1459265 when 3.14159265 had been intended in core/Helix.cpp

Read more »

R/Finance 2011 Presentations are online

May 29, 2011
By

For those of you who don't subscribe to the R-SIG-Finance mailing list: You really should subscribe ;-)Dirk Eddelbuettel announced the R/Finance 2011 presentations are now available.I've included the entire announcement (with some hyperlinks) below.The organizing committee for the R/Finance 2011 conference is pleased to announce the availability of presentation slides from the 3rd annual R/Finance...

Read more »

R/Finance 2011 Presentations are online

May 29, 2011
By

For those of you who don't subscribe to the R-SIG-Finance mailing list: You really should subscribe ;-) Dirk Eddelbuettel announced the R/Finance 2011 presentations are now available. I've included the entire announcement (with some hyperlinks) below.The organizing committee for the R/Finance 2011 conference is pleased to announce the availability of presentation slides from the 3rd annual R/Finance...

Read more »

googleVis-0.2.4 requires older version of RJSONIO (0.5-0) #rstats

May 29, 2011
By
googleVis-0.2.4 requires older version of RJSONIO (0.5-0) #rstats

Downgrade to RJSONIO 0.5 if you want to be able to set initial states with the current googleVis package. Otherwise, there will be lots of extra backslashes in your JavaScript--and blank pages in your browser.

Read more »

Dicetributions – episode I

May 29, 2011
By
Dicetributions – episode I

Suppose the following game with two players: In every round, the two players pick a random number, each. Instead of using a dice, they pick a number from an interval. Player A picks a number from and player B from . Variation 1. The greater number wins. Who is more likely to win? It

Read more »

R functions for Earth geographic coordinate calculations

May 29, 2011
By
R functions for Earth geographic coordinate calculations

Here are some functions that I regularly use for geographic data (e.g. binning, filtering, calculation of new positions etc.).#distance in kilometers between two long/lat positions (from "fossil" package)earth.dist <- function (long1, lat1, long2, l...

Read more »

Which R documents to read, and which R packages to use

May 29, 2011
By
Which R documents to read, and which R packages to use

There are lots of R documents and over 3000 R packages. Which documents to start with and which R packages to use are questions faced by many people. If you are new to R, an Introduction to R can be … Continue reading →

Read more »

Comparing HoltWinters() and ets()

May 29, 2011
By

I received this email today: I have a question about the ets() function in R, which I am trying to use for Holt-Winters exponential smoothing. My problem is that I am getting very different estimates of the alpha, beta and gamma parameters using ets() compared to HoltWinters(), and I can’t figure out why. This is

Read more »

An Application of boot() to IV regression

May 28, 2011
By
An Application of boot() to IV regression

Bootstrapping standard errors can be a useful technique when obtaining closed form for the standard error formula is difficult or intractable. In this post, I give an example of how to use R to create a bootstrap sampling distribution in the context o...

Read more »

An Application of boot() to IV regression

May 28, 2011
By
An Application of boot() to IV regression

Bootstrapping standard errors can be a useful technique when obtaining closed form for the standard error formula is difficult or intractable. In this post, I give an example of how to use R to create a bootstrap sampling distribution in the context o...

Read more »

RcppArmadillo 0.2.21

Following up Conrad's 1.99.2 release (in RcppArmadillo 0.2.20), we now have Armadillo 1.99.3 en route to the upcoming 2.0.0 release. Armadillo is a templated C++ library for linear algebra---which RcppArmadillo brings to R based on our Rcpp library...

Read more »

R for the web

May 27, 2011
By

There is a nice R module for apache: rApache. So you can easily publish statistics.

Read more »

Collaborative R coding using Dropbox

May 27, 2011
By
Collaborative R coding using Dropbox

I do like Dropbox. I’m a big fan of easy to use solutions to common problems. For me I work at two different sites and I do a significant amount of work at my desktop machine at home as well as on my laptop. Dropbox solved the problem of synchronising files between

Read more »

Handling Errors Gracefully

May 27, 2011
By

In R functions sometimes produces warnings or errors. In the case of errors execution of a function or a series of commands can get halted when an error occurs, which can in some cases be frustrating especially if we want to continue our calculations. There are various functions available in R for dealing with errors

Read more »

Norvig and the Nature of Modern Science

May 27, 2011
By

In this, Chomsky is in complete agreement with O’Reilly. (I recognize that the previous sentence would have an extremely low probability in a probabilistic model trained on a newspaper or TV corpus.)1 Anyone who considers themself an intellectual should be required to read this new essay by Peter Norvig. It’s the best summary I’ve ever

Read more »

Presentations from R/Finance 2011 available

May 27, 2011
By

Last month's R/Finance 2011 conference in Chicago was an outstanding event, bringing together some of the best minds in applying R to financial data. Presentations from the speakers are now available for download, with a wealth of useful information there for anyone working in quantiative finance. Not to be missed, though, is John Bollinger's (yes, that John Bollinger) retrospective...

Read more »

Notes to Self: Getting Rapache working in Natty Narwhal (Ubuntu/Linux)

May 27, 2011
By
Notes to Self: Getting Rapache working in Natty Narwhal (Ubuntu/Linux)

In this post, I cover my experiences in getting Rapache working in the latest version of Ubuntu (11, Natty Narwhal). …Continue reading »

Read more »

Beginne..R 1.0

May 26, 2011
By

Opening this blog is a step in a long journey of discovery, learning and frustration. To begin with I would consider myself a beginner R user, I am getting better, but I am not about to write a package any time soon. I started using R about three years...

Read more »

Beginne..R 1.0

May 26, 2011
By

Opening this blog is a step in a long journey of discovery, learning and frustration. To begin with I would consider myself a beginner R user, I am getting better, but I am not about to write a package any time soon. I started using R about three years...

Read more »