using R + ess-remote with screen in emacs

July 11, 2010
By

Dear list, I brought up this issue before but a good solution never arised: being able to use screen on a remote server (so if something goes wrong on my side I can always resume that R session) inside of emacs in order to utilize ESS. The closest thing I found to a good work

Read more »

Area Plots with Intensity Coloring ~ el nino SST anomalies w/ ggplot2

July 10, 2010
By
Area Plots with Intensity Coloring ~ el nino SST anomalies w/ ggplot2

I see many economy indicator graphs that show emphasis by shading in the curve under the area (while x-axis is time). The shade is stronger at higher values (example). I did this in R below (ggplot2). This was a little more difficult that I’d expected. The color gradients are good to color each individual points

Read more »

CoRe in CiRM [3]

July 10, 2010
By
CoRe in CiRM [3]

Still drudging along preparing the new edition of Bayesian Core. I am almost done with the normal chapter, where I also changed the Monte Carlo section to include specific tools (bridge) for evidence/Bayes factor approximation. Jean-Michel has now moved to the new hierarchical model chapter and analysed longitudinal  datasets that will constitute the core of

Read more »

World Government Data Store API (R and Ruby)

July 10, 2010
By
World Government Data Store API (R and Ruby)

The UK Guardian Data Blog has great visualizations on the topics of the day - along with with specific references to data sets and online resources in use.  You can find out more about the origins and plans of this and related data sites in t...

Read more »

Rcpp 0.8.4

July 10, 2010
By
Rcpp 0.8.4

Dirk uploaded Rcpp 0.8.4 to CRAN yesterday. This release quickly follows the release of Rcpp 0.8.3, because there was some building problems (particularly on the ppc arch on OSX). Rcpp sugar Already available in Rcpp 0.8.3, the new sugar feature was extended in 0.8.4 to cover...

Read more »

bibtex 0.2-1

July 10, 2010
By

I've uploaded version 0.2-1 of my bibtex package to CRAN. This release anticipates changes in R 2.12.0, and structures bibtex entries in object of the new class bibentry. The release also fixes various parser and lexer bugs

Read more »

Creating a Presentation with LaTeX Beamer – Bullet Lists

July 10, 2010
By
Creating a Presentation with LaTeX Beamer – Bullet Lists

When writing a presentation we might want to use a bullet list to highlight some key points that might be lost if they are part of a large body of text. We can use the standard LaTeX environments for creating lists within a beamer presentation in a straightforward way. Fast Tube by Casper The bullet lists can

Read more »

Visualizing the census

July 9, 2010
By
Visualizing the census

Now that the 2010 survey is over, you might be wondering what we can learn from the data when the aggregated results are published. For a good guide to the kinds of questions you'll be able to answer, take a look at StatJump, where you can see tables and charts of the results of the 2000 census: population data...

Read more »

R and Oracle HR Part II – Plotting a single variable

July 9, 2010
By
R and Oracle HR Part II – Plotting a single variable

If you have not done so already, make sure you have R and Oracle setup as described in the previous article.  If so, you should be able to create a connection from R and list the tables that are available in the HR schema.library('RODBC')ch <-o...

Read more »

Les estivales 2010

July 9, 2010
By

Les estivales 2010 ont commencées à montpellier.

Read more »

Chatfield’s Plots in S-Plus

July 9, 2010
By
Chatfield’s Plots in S-Plus

I have recently finished reading the sixth edition of The Analysis of Time Series: An Introduction by Chatfield in our Statistics reading group. Whilst enjoying most of the book I got a little confused when looking at Appendix D: Some … Continue reading →

Read more »

Funny Math in Governor Approval Ratings

July 9, 2010
By

Andrew Gelman wrote today about some erroneous U.S. Governor approval ratings, noting that the ratings for Janet Napolitano sum to 108%. In fact most of these ratings do not sum to 100%. I prepared a clean CSV file of the ratings, making use of R‘s XML library and the readHTMLTable function. The ratings data file

Read more »

World Bank data plots

July 9, 2010
By
World Bank data plots

Couple of weeks ago, I was looking for interesting data sets to play with using R. I came across this post and got inspired to use World Bank data to extract interesting patterns/facts about developing countries. World Bank has 300+ World Development i...

Read more »

100 Prisoners, 100 lines of code

July 9, 2010
By
100 Prisoners, 100 lines of code

In math and economics, there is a long, proud history of placing imaginary prisoners into nasty, complicated scenarios. We have, of course, the classic Prisoner’s Dilemma, as well as 100 prisoners and a light bulb. Add to that list the focus of this post, 100 prisoners and 100 boxes. In this game, the warden places

Read more »

TripleR/ BlockR: Working on mixed effect models …

July 9, 2010
By
TripleR/ BlockR: Working on mixed effect models …

At the moment I’m working on the implementation of full block designs (e.g., every member of group A rates each member from group and vice versa. A typical example is speed dating: every man rates each woman and vice versa). These designs can be analyzed with mixed effect models, and now I’m a bit confused

Read more »

Core in CiRM [2]

July 8, 2010
By
Core in CiRM [2]

We are making slow progress on the normal and regression chapters as we decided to write the package at the same time we revise the chapters… Jean-Michel transformed the variable selection and model choice R codes of the regression chapter into generic functions that will fit within the package. I rewrote the section on testing,

Read more »

Just updated the list of the new blog de…

July 8, 2010
By
Just updated the list of the new blog de…

Just updated the list about the new blog design and purpose. Hope it will prove useful.

Read more »

Competition: Predicting traffic

July 8, 2010
By

Here's an interesting competition that may well lend itself to R: the IEEE International Conference on Data Mining is running a contest to find the best way of predicting traffic problems. There are three separate contests: Predicting congestion: a series of measurements from 10 selected road segments is given and the goal is to make short-term predictions of future...

Read more »

R and Oracle HR Part I – Set Up and Connect

July 8, 2010
By
R and Oracle HR Part I – Set Up and Connect

There has been recent interest in the attention that Oracle has been giving to R.  This has been related to the use of Oracle Data Mining which is a paid option to Oracle.  This is the first in a series of posts that can be run using the Orac...

Read more »

Subsampling for dummies

July 8, 2010
By

A little piece of code dealing with the subsampling of matrices, in R. Useful if you want to use something akin to bootstrap, or just check the size of your sample with regard to various statistics.

Read more »

ggplot2 GSOC progress

July 8, 2010
By
ggplot2 GSOC progress

Progress on the ggplot2 user interface is coming along. Please check out this VLOG which will give a good idea of where I currently am in the process. http://neolab.stat.ucla.edu/cranstats/vlog2.mov As always comments and suggestions are welcome. If you would like to try it out yourself, you can install the development version of Deducer using install.packages("Deducer",,"http://www.rforge.net",type="source")

Read more »

R/Finance 2010 presentations

July 7, 2010
By

The presentations from April's successful R/Finance 2010 conference in Chicago are now available online. (Revolution Analytics is a proud sponsor of the conference.) There's some amazing content here for anyone looking for the cutting-edge of financial engineering, with presentations from practitioners and researchers at institutions like Invesco Asset Management, Black Mesa Capital, and some of the leading academic institutions...

Read more »

All code on GGD is Free (Open Source BSD)

July 7, 2010
By

At the request of a commenter I just wanted to clarify that any code released here for R or anything else is free and open source unless specifically stated otherwise. The open source BSD license for any code on GGD can be found on this copyright page.

Read more »

Navigate the Bermuda Triangle of Mediation Analysis

July 6, 2010
By
Navigate the Bermuda Triangle of Mediation Analysis

MYTHS AND TRUTHS ABOUT AN OFTEN-USED, LITTLE-UNDERSTOOD STATISTICAL PROCEDURE If you go to a consumer research conference, you will hear tales of how experiments have undergone particular statistical rites: the attainment of the elusive crossover interaction, the demonstration of full mediation through Baron and Kenny’s sacred procedure, and so on. DSN has nothing against any

Read more »

Drawing a trophic network (part 2)

July 6, 2010
By
Drawing a trophic network (part 2)

Following discussion on the comments of the previous post, I thought about how it was possible to draw links going in several directions (i.e. there are no ‘clear’ differences between the levels, and species from level n can interact with species of level n, n+1, n-1, n±k, etc). This is now done, with a code

Read more »

Core in CiRM [1]

July 6, 2010
By
Core in CiRM [1]

Jean-Michel Marin and myself have thus started our “research in pair” in CIRM, Luminy, for a fortnight. We are working on the second edition of Bayesian Core and, despite working round the clock on the project (except for a one hour run around Mont Puget this morning), we are not going as fast as planned…

Read more »

Draw a trophic network with n levels

July 6, 2010
By
Draw a trophic network with n levels

I published a short function to draw trophic networks with several levels, with links going from level n+1 to level n only. It will only be of interest for people working in ecology (but if you see another possible use, please let me know). It is available here – with examples. If I continue to

Read more »

Chaos in the Financial Markets?

July 6, 2010
By
Chaos in the Financial Markets?

Over the years I've had quite a few interested individuals ask me about Chaos and its applications towards trading. Well, as hidden markov models and speech processing were made popular by James Simons and his team at Renaissance Technologies, one cou...

Read more »

Draw a trophic network with n levels

July 6, 2010
By

In the last few weeks, I started focusing more on more of trophic systems with three levels or more. I wanted something to visualize the resulting trophic network, so I came up with a little R function called draw.mnet (which stands for draw a multiple-levels network).

Read more »