The R statistical computing environment is awesome, but weird. How to do database operations in R is a common source of questions. The other day I was looking for an equivalent to SQL group by for R data frames. You need this to compute summary statist...
Yihui creates an Christmas greeting using R: See the R code to create an animated message in Flash here: Keep on Fighting: Merry Christmas Using R [Read more...]
He's no Father Christmas, but he is dressed in festive red and green, and he's made of bacteria. This image, Mario, was submitted to the 2009 international Genetically Engineered Machine (iGEM) competition by Team Osaka from the nanobiology laboratories at the University of Osaka, Japan. They genetically engineered bacteria to express ... [Read more...]
One of the problems with choropleths is that, as explained by Hadley Wickham in this presentation, big states tend to draw more attention because of their size, but they also tend to have a low population Density. For example, Mexico City, the capital ... [Read more...]
After installing Weka/RWeka in R, you may get this error if you try to load RWeka in the same session: require(RWeka) Cannot create Java virtual machine (-4) Error : .onLoad failed in 'loadNamespace' for 'RWeka' Solution: Just close R and re-open it. Cause: Apparently the installation requires some initialization. ... [Read more...]
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 ...
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...]
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...]
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 https://www.r-project.org, the ... [Read more...]
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 ... [Read more...]
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 ...
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...]
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...]
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...]
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...]
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 ... [Read more...]
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 ... [Read more...]
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 ... [Read more...]
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...