Summary plots

August 2, 2010
By
Summary plots

So, when you first look at some data, it’s helpful to get a feel of it. One way to do this is to do a plot or two. I’ve found myself continuously doing the same series of plots for different datasets, so in the end I wrote this short code to put all the plots

Read more »

Using xBalance with MatchIt

August 1, 2010
By

In a previous post, I demonstrated how to create a propensity score matching, test balance, and analyze the outcome variable using the optmatch and RItools packages. The same strategy can be used with other matching algorithms, for example the various methods included in the MatchIt package. I’ll use the same basic question and data from my previous...

Read more »

Margin Constraints with LSPM

August 1, 2010
By
Margin Constraints with LSPM

When optimizing leverage space portfolios, I frequently run into the issue of one or more f$ (/f) being less than the margin of its respective instrument.  For example, assume the required margin for an instrument is $500, f$ is $100, an...

Read more »

NetLogo-R-Extension

August 1, 2010
By
NetLogo-R-Extension

Here is a bridge between NetLogo and R, which looks very interesting. But I was not able to get it work on my Ubuntu box (running the latest R).

Read more »

R2HTML Package

August 1, 2010
By
R2HTML Package

Introduction R2HTML is an R package, written and maintained by Eric Lecoutre currently maintained by me. It provides functions and methods to output different R objects to HTML files. It also has a Sweave driver to allow parsing of HTML files containing R code and automatically write the corresponding outputs. Current released version: 1.59 Download

Read more »

Revolution at JSM

August 1, 2010
By

If you're in Vancouver for the Joint Statistics Meetings, come by and meet the Revolution team. (Revolution is a Silver Sponsor of JSM.) We're at Booth 527 of the Exhibition Hall (near the poster displays) showing the new and upcoming features of Revolution R, and we've got lots of R-related goodies to give away. If you're new to R,...

Read more »

Benford’s Law Tests for Wikileaks Data

August 1, 2010
By
Benford’s Law Tests for Wikileaks Data

In my first post on the WL Afghanistan data I provided a very high-level view of the data, and found that it generally met expectations for frequency given its context and presumed data generating process. Next, I will look a bit deeper at this process and test if the observed frequencies of reports have properties

Read more »

How to install R packages from source on Mac OS X

July 31, 2010
By

In my last post about installing the rgdal R package on Mac OS X, I had apparently glossed over the last step of compiling the R package from source.  I hadn’t realized that Mac OS X actually doesn’t come default with the necessary software to do this.  Most times, prepackaged binaries work fine but occasionally,

Read more »

StatProb [wiki]

July 31, 2010
By
StatProb [wiki]

Via the support of Springer, probability and statistics societies are launching a specialised wiki called StatProb. It operates as a wiki in that authors can submit short articles on any topic, with further co-authors joining in later to improve those articles, but with the contents guaranteed via the filter of an editorial

Read more »

Read a new book…

July 31, 2010
By

From the book website : IPSUR stands for Introduction to Probability and Statistics Using R, ISBN: 978-0-557-24979-4, which is a textbook written for an undergraduate course in probability and statistics. The approximate prerequisites are two or three semesters of calculus and some linear algebra in a few places. Attendees of the class include mathematics, engineering,

Read more »

Read a new book…

July 31, 2010
By

From the book website : IPSUR stands for Introduction to Probability and Statistics Using R, ISBN: 978-0-557-24979-4, which is a textbook written for an undergraduate course in probability and statistics. The approximate prerequisites are two or three semesters of calculus and some linear algebra in a few places. Attendees of the class include mathematics, engineering, ...read more

Read more »

highlight 0.2-2

July 31, 2010
By

I've released highlight 0.2-2 to CRAN. This release adds the possibility to control the font size of the latex code generated by sweave (when using the driver that is provided by highlight) For example, this C++ code (using Rcpp) will be highlight...

Read more »

Save R plot as a BLOB

July 30, 2010
By

I recently posed a question on stackoverflow on whether anyone knew an efficient way to save an R plot to a MySQL database as a BLOB. My plan was to use my personal desktop to perform R routines and save them to a web server, where they could then be accessed and displayed on

Read more »

Thinking about Graphs

July 30, 2010
By
Thinking about Graphs

A recent Wall Street Journal article ruminated about the degree that language shapes thought (rather than the other way around).  This idea has rather profound implications in the more specific domain of programming languages. We initially learn a...

Read more »

Free R Chart iPhone App

July 30, 2010
By
Free R Chart iPhone App

Download the free R-Chart iPhone Application for the latest news and updates from top R web sites... (and this blog too).App Store LinkLeave a comment if you have any feedback or suggestions!

Read more »

Viewing a bipartite network

July 30, 2010
By
Viewing a bipartite network

A short modification of a function to draw bipartite networks in matrix form, with sorting of the network to reflect its nestedness.

Read more »

Because it’s Friday: Double Rainbow

July 30, 2010
By

It's sunny up here in Seattle (I'm attending BioConductor 2010 -- Revolution's a sponsor) now that the morning fog has lifted. So in honor of sunny Friday afternoons, I bring you the Double Rainbow song: (If you've been in a wi-fi-less cave for the past couple of weeks, check out the original.)

Read more »

An analysis of the Wikileaks data with R

July 30, 2010
By
An analysis of the Wikileaks data with R

At his Zero Intelligence Agents blog, Drew Conway has taken on the task of performing a quantitative analysis (using R, of course) of the controversial Afghanistan document dump from Wikileaks. He's started with an analysis of the overall flow of information in the five Afghanistan regions, categorized by type of activity (enemy, neutral, etc.). (Click to enlarge.) It's a...

Read more »

New Fantasy Ball Junkie Article

July 30, 2010
By
New Fantasy Ball Junkie Article

I have a new post up over at Fantasy Ball Junkie looking at the value of closers in H2H leagues from here on out. I simply simulated in the same way as the Stolen Bases and Home Runs articles from before. Saves are an interesting bunch, and it really...

Read more »

inline 0.3.6

July 30, 2010
By

I released inline 0.3.6 yesterday. This is a minor release which gives better R level errors when there is a compiler error. For example : > tryCatch( cxxfunction( , 'int x = 3 ; x+ ; return R_NilValue ; ' ), error = function(e) print(e$message)...

Read more »

Visualizing 3d data – plotting quartiles separately

July 30, 2010
By
Visualizing 3d data – plotting quartiles separately

In this previous post, we’ve looked at displaying three dimensional data.  One major problem is when there is a high density of data, it can be difficult to see what’s going on in a 3 dimensional plot. One way of looking at the data in more detail is to break it up.  Take a look

Read more »

Using Optmatch and RItools for Observational Studies

July 29, 2010
By
Using Optmatch and RItools for Observational Studies

I am a contributor to the optmatch and the RItools packages for R. These two packages are separate, but complimentary. Both packages provide tools for adjusting observational data to exhibit “balance” on observed covariates. In a randomized control trial, treatment and control groups should have identical distributions over all covariates, observed and unobserved. Matching provides a...

Read more »

The Mule goes SURFing

July 29, 2010
By

A month ago I posted about “SURF”, the newly-established Sydney R user forum (R being an excellent open-source statistics tool). Shortly after publishing that post, I attended the inaugural forum meeting. While we waited for attendees to arrive, a few people introduced themselves, explaining why they were interested in R and how much experience they

Read more »

RcppArmadillo 0.2.4

July 29, 2010
By

A new release of RcppArmadillo is now on CRAN. RcppArmadillo makes it easy to write highly efficient and highly readable C++ code for linear algebra (based on Armadillo) in R extensions (using Rcpp for the interface). This release upgrades the include...

Read more »

RcppArmadillo 0.2.4

July 29, 2010
By

A new release of RcppArmadillo is now on CRAN. RcppArmadillo makes it easy to write highly efficient and highly readable C++ code for linear algebra (based on Armadillo) in R extensions (using Rcpp for the interface). This release upgrades the incl...

Read more »

Red-R

July 29, 2010
By
Red-R

Red-R seems to have some interesting ideas behind it. Of course it needs some time to mature.

Read more »

IMIS & AMIS

July 29, 2010
By
IMIS & AMIS

A most interesting paper by Adrian Raftery and Le Bao appeared in the Early View section of Biometrics.  It aims at better predictions for HIV prevalence—in the original UNAIDS implementation, a naïve SIR procedure was used, based on the prior as importance function, which sometimes resulted in terrible degeneracy—, but its methodological input is about

Read more »

Pie Charts in ggplot2

July 29, 2010
By
Pie Charts in ggplot2

...and other isomorphic data shape presentations...The Pie Chart has been widely criticized in recent times by statisticians.  Edward Tufte goes as far as to call this the "prevailing orthodoxy."  The reasons generally cited:The rel...

Read more »

A free book on probability and statistics with R

July 29, 2010
By

G Jay Kerns has published a 400+ page introductory text on Probability and Statistics. All of the examples and illustrations are done using R (as Jay puts it, "The people at the party are Probability and Statistics; the handshake is R") so if you want to brush up on your probability and learn R at the same time, this...

Read more »