Monthly Archives: January 2011

Usage of R functions "table" & "ifelse" when NA’s exist

January 12, 2011
By

Most of the time I came across now and then in help posts questions regarding the mismatching total count of observations after employing the R functions "table" and "ifelse". This usually creates frustration among fresh/part-time practitioners which e...

Read more »

RProtoBuf 0.2.2

January 12, 2011
By

Thanks to two patches by Murray Stokely, we have a nice new minor release 0.2.2 of RProtoBuf out on CRAN. RProtoBuf provides GNU R bindings for the Google Protobuf data encoding library used and released by Google. The NEWS file entry follows bel...

Read more »

Two short Bayesian courses in South’pton

January 12, 2011
By
Two short Bayesian courses in South’pton

An announcement for two short-courses on Introduction to  Bayesian Analysis and MCMC, and Hierarchical Modelling of Spatial and Temporal Data by Alan Gelfand (Duke University, USA) and Sujit Sahu (University of Southampton, UK), are to take place in Southampton on June 7-10, this year. Course 1: Introduction to Bayesian Analysis and MCMC. Date: June 7,

Read more »

The number 1 novice quant mistake

January 12, 2011
By
The number 1 novice quant mistake

It is ever so easy to make blunders when doing quantitative finance.  Very popular with novices is to analyze prices rather than returns. Regression on the prices When you want returns, you should understand log returns versus simple returns. Here we will be randomly generating our “returns” (with R) and we will act as if … Continue reading...

Read more »

Create Motion Charts in R with the GoogleVis package

January 11, 2011
By

Hans Rosling popularized Motion Charts -- 2-d scatterplots that animate over time -- with the GapMinder project. Motion Charts were taken to their augmented-reality extreme in this clip from the BBC programme, The Joy of Stats, but now you can create similar (if less audacious) motion charts for yourself with just R and a Flash-enabled browser. First, you'll need...

Read more »

Platinum – Palladium relationship

January 11, 2011
By
Platinum – Palladium relationship

Emacs Starter Kit for the Social Sciences now gets ESS via ELPA

January 11, 2011
By

More starter kit stuff. Up till now, the Emacs Starter Kit for the Social Sciences included ESS, but bundled it with the git repo. A better option would be to have it installed via the package mechanism, like AucTeX is now, but it’s not included. The ELPA system is allows you to specify repositories besides

Read more »

Introducing the Lowry Plot

January 11, 2011
By
Introducing the Lowry Plot

Here at the Health and Safety Laboratory* we’re big fans of physiologically-based pharmacokinetic (PBPK) models (say that 10 times fast) for predicting concentrations of chemicals around your body based upon an exposure. These models take the form of a big system of ODEs. Because they contain many equations and consequently many parameters (masses of organs

Read more »

Data-Driven Journalism

January 11, 2011
By

The December 2010 meeting of the Bay Area R Users Group featured Peter Aldhous, San Francisco bureau chief of New Scientist magazine who will give a presentation on "Data-Driven Journalism". From the WikiLeaks War Diaries, to geographical analyses of ...

Read more »

Recreating Gapminder World Map with R & ggplot2

January 11, 2011
By
Recreating Gapminder World Map with R & ggplot2

Gapminder has posted an interesting chart using world development indicators from the World Bank. I thought it would be a good exercise to recreate this chart using R and ggplot2. While playing with the data, not log transforming GDP provides some interesting, and perhaps different, interpretation. The R script and graphics are below. Google Gadget Version library(ggplot2)

Read more »