A web-based graphics application based on R

December 24, 2009
By
A web-based graphics application based on R

FlowingData recently took a look at Jeroen Ooms' latest web-based statistical tool based on R. We've looked at his tools for random-effects models and finance visualizations before, but this one is a more general tool for creating graphs from data sets using the ggplot2 package. It's pretty slick. All you need to do is upload a data set (in...

Read more »

Beancounter minor bug fix release 0.8.9

December 23, 2009
By

Another small update to beancounter and just like the previous release due to changes in Perl's Date::Manip. It seems that Date_Calc now really wants a reference to store error codes, so we supply one. I also changed the FX code to use OandA ad there ...

Read more »

Beancounter minor bug fix release 0.8.9

December 23, 2009
By

Another small update to beancounter and just like the previous release due to changes in Perl's Date::Manip. It seems that Date_Calc now really wants a reference to store error codes, so we supply one. I also changed the FX code to use OandA ad there a...

Read more »

Beancounter minor bug fix release 0.8.9

December 23, 2009
By

Another small update to beancounter and just like the previous release due to changes in Perl's Date::Manip. It seems that Date_Calc now really wants a reference to store error codes, so we supply one. I also changed the FX code to use OandA ad there ...

Read more »

Compare performance of machine learning classifiers in R

December 23, 2009
By
Compare performance of machine learning classifiers in R

This tutorial demonstrates to the R novice how to create five machine learning models for classification and compare the performance graphically with ROC curves in one chart. For a simpler introduction, start with Plot ROC curve and lift chart in R. # ...

Read more »

R in India: The Hindu

December 23, 2009
By

The Hindu, a leading English-language newspaper in India, published an article on December 21 about doing research with open-source tools and R got a prominent mention: Though commercial statistical packages are popular among researchers, their licensing costs drive people away from them. In this context, R http://www.r-project.org, the open source/free statistical package, which is fast becoming the darling of...

Read more »

malapportionment in the U.S. Senate

December 23, 2009
By
malapportionment in the U.S. Senate

The 40 Republican senators currently in the U.S. senate represent 36% of the U.S population. See the graph below (click on the thumbnail for PDF). This is something I’ve been meaning to compute for a while now, mapping the cumulative distribution of senators’ ideal points onto the cumulative distribution of state population (each state counts

Read more »

The Life Scientists at FriendFeed: 2009 summary

December 23, 2009
By
The Life Scientists at FriendFeed: 2009 summary

It’s Christmas Eve tomorrow and so I declare the year over. My Christmas gift to you is a summary of activity in 2009 at the FriendFeed Life Scientists group. It’s crafted using R + Ruby, with raw data and some code snippets available. If you want to see the most popular items from the group

Read more »

RInside release 0.2.0

December 22, 2009
By

RInside, a set of convenience classes to facilitate embedding of R inside of C++ applications, was updated to release 0.2.0 over the weekend. Sources as well as binary packages are at CRAN; sources are also at my RInside page The biggest news is t...

Read more »

RInside release 0.2.0

December 22, 2009
By

RInside, a set of convenience classes to facilitate embedding of R inside of C++ applications, was updated to release 0.2.0 over the weekend. Sources as well as binary packages are at CRAN; sources are also at my RInside page The biggest news is that ...

Read more »

RInside release 0.2.0

December 22, 2009
By

RInside, a set of convenience classes to facilitate embedding of R inside of C++ applications, was updated to release 0.2.0 over the weekend. Sources as well as binary packages are at CRAN; sources are also at my RInside page The biggest news is t...

Read more »

Multilevel and Longitudinal Modeling in Stata

December 22, 2009
By

For my "off-task" reading I recent perused an excellent book on multilevel and longitudinal modeling in Stata by Sophia Rabe-Hesketh and Anders Skrondal. The second edition (which I read) has been updated by including several chapters providing an over...

Read more »

Visualizing Unemployment in Mexico

December 22, 2009
By
Visualizing Unemployment in Mexico

What has been the impact of the economic crisis on employment? And how has it affected the different regions of Mexico? To answer the questions the first step was to obtain the unemployment data from the Banco de Información Económica at the INEGI. ...

Read more »

CPP package: exposing C++ objects

December 22, 2009
By

I've just started working on the new package CPP, as usual the project is maintained in r-forge. The package aims at exposing C++ classes at the R level, starting from classes from the c++ standard template library. key to the package is the CPP f...

Read more »

Forecasting the weather with R

December 22, 2009
By
Forecasting the weather with R

The US National Centers for Environment Prediction (NCEP) produces weather forecasts for the entire world from a model that's updated every 6 hours. The data is made freely available, and with a couple of free tools to convert the data and R you can easily produce am unpdated global weather forecast like this (click to enlarge): (Check out the...

Read more »

Singapore, February 19-20: Computational Topics in Finance

December 21, 2009
By

With all of the winter snows in the US this weekend, a trip to equatorial climes sounds pretty good right about now. That makes this email announcement from Rmetrics leader Diethelm Wuertz all the more tempting: Conference on 'Computational Topics in Finance' February 19/20, 2010, National University of Singapore Dear R/Rmetrics Community, We would like to announce the first...

Read more »

Animation video of rgl in action

December 21, 2009
By

Duncan Murdoch just posted a youtube video presenting an animation clip of a 3d rgl object. Duncan even went further and wrote an explanation on how he made the video: here are the steps I used: 1.  Design a shape to be displayed, and then play with the animation functions to make it change over time.  Use play3d to do

Read more »

MCMCglmm

December 21, 2009
By
MCMCglmm

This R packages estimates Generalised Linear Mixed Models via MCMC. It provides a number of random error distributions and can be used for multivariate multilevel models (simultaneous equation model).I will do some tests and compare the results to othe...

Read more »

Sweave in TeXShop

December 21, 2009
By

I love using TeXShop for GUI editing of LaTeX and particularly Sweave documents, but it is a pain not being able to get it to automatically generate the pdf output. Luckily I found this post which explains how to add a Sweave engine.Basically, make a f...

Read more »

Sweave in TeXShop

December 21, 2009
By

I love using TeXShop for GUI editing of LaTeX and particularly Sweave documents, but it is a pain not being able to get it to automatically generate the pdf output. Luckily I found this post which explains how to add a Sweave engine.Basically, make a f...

Read more »

Rcpp and inline example

December 20, 2009
By

Following up on yesterday's Rcpp 0.7.0 release, here is a quick example of why the new feastures can be so useful. The following R code defines a character variable gslrng. This variable contains a short C++ code segment, which is then transformed by the function cfunction into a function of two arguments assigned to funx: ## now use Rcpp to...

Read more »

Rcpp and inline example

December 20, 2009
By

Following up on yesterday's Rcpp 0.7.0 release, here is a quick example of why the new feastures can be so useful. The following R code defines a character variable gslrng. This variable contains a short C++ code segment, which is then transformed by ...

Read more »

Rcpp and inline example

December 20, 2009
By

Following up on yesterday's Rcpp 0.7.0 release, here is a quick example of why the new feastures can be so useful. The following R code defines a character variable gslrng. This variable contains a short C++ code segment, which is then transformed by the function cfunction into a function of two arguments assigned to funx: ## now use Rcpp to...

Read more »

got R? get social science for R!

December 19, 2009
By

Drew Conway has a great list of 10 must-have R packages for social scientists. If you’re a social scientist (or really, any kind of scientist) who doesn’t use R, now is a great time to dive in and learn; there are tons of tutorials and guides out there (my favorite is Quick-R, which is incredibly

Read more »

Rcpp 0.7.0

December 19, 2009
By

A new release of Rcpp awaits inclusion on CRAN and has also been sent as a .deb to Debian. It will hit mirrors over the next few days, in the meantime you can get it here as well. This release has a couple new features : inline support: the cf...

Read more »

Rcpp 0.7.0

December 19, 2009
By

A new release of Rcpp awaits inclusion on CRAN and has also been sent as a .deb to Debian. It will hit mirrors over the next few days, in the meantime you can get it here as well. This release has a couple new features : inline support: the cfunction...

Read more »

Rcpp 0.7.0

December 19, 2009
By

A new release of Rcpp awaits inclusion on CRAN and has also been sent as a .deb to Debian. It will hit mirrors over the next few days, in the meantime you can get it here as well. This release has a couple new features : inline support: the cf...

Read more »

Because it’s Friday: The decline of empires

December 18, 2009
By

Here's a neat visualization of the decline of the British, Spanish, Portugese and French empires from 1800 to present day. It's definitely more art than stats -- judging by the relative size of India and Australia I think the circles are scaled to area, not population -- but it definitely does capture the drama and the ebb and flow...

Read more »

Using Complex Numbers in R

December 18, 2009
By
Using Complex Numbers in R

This post is a continuation of my series dealing with matrix operations for image processing. My next goal is to demonstrate the construction of simple low-pass and high-pass spatial frequency filters in R. It’s easy enough to construct simple versions of these filters in R using the Fast Fourier Transform (also known as the FFT),

Read more »