Monthly Archives: September 2010

mapping the Australian election (2010 edition)

September 11, 2010
By
mapping the Australian election (2010 edition)

The AEC makes this reasonably easy, as do the authors of some very helpful R packages, the good people at Google Maps etc. Full description here (PDF); entire collection here; a sample here, showing Green 1st preferences, by polling places across metro...

Read more »

EmEditor Professional as an R script editor

September 11, 2010
By
EmEditor Professional as an R script editor

R is not supported "out of the box" by EmEditor, so here's a few tips I've found for using it as a great editor for R.Code Syntax highlighting Executing R scripts and capturing outputUse ctags symbols to navigate files.If you create packages for CRAN or like neat code, you might like to use a macro to tidy it...

Read more »

Using the {plyr} (1.2) package parallel processing backend with windows

September 11, 2010
By

Hadley Wickham has just announced the release of a new R package “reshape2” which is (as Hadley wrote) “a reboot of the reshape package”. Alongside, Hadley announced the release of plyr 1.2.1 (now faster and with support to parallel computation!). Both releases are exciting due to a significant speed increase they have now gained. Yet in case of the new plyr...

Read more »

10w2170, Banff

September 11, 2010
By
10w2170, Banff

Yesterday night, we started the  Hierarchical Bayesian Methods in Ecology workshop by trading stories. Everyone involved in the programme discussed his/her favourite dataset and corresponding expectations from the course. I found the exchange most interesting, like the one we had two years ago in Gran Paradiso, because of the diversity of approaches to Statistics reflected

Read more »

Billy Bragg

September 10, 2010
By

In the spur of the moment, I cycled over to Dominican, one of the two small colleges in town, to see if I could snag a remaining ticket to see Billy Bragg perform. Turned out I could, and it became a nice evening out. Darren Hanlon started up the ev...

Read more »

Rcpp 0.8.6

September 10, 2010
By

Dirk released Rcpp 0.8.6 to CRAN Most of the development of this release was trigerred by a question on the Rcpp-devel mailing list. After Richard's question, we added d-p-q-r functions for most of the distributions available in R. The file runit...

Read more »

Because it’s Friday: Religion and reading level

September 10, 2010
By
Because it’s Friday: Religion and reading level

The dating site OK Cupid often publishes on their blog interesting analyses of based on the self-reported data from their users, and the latest post is no exception. Most commentary has focused on race/gender preference analysis: according to the "Likes" sections of OK Cupid profiles, white males like "sweaty guitar rock, bro-on-bro comedies, things with engines, and dystopias" whereas...

Read more »

R SQL-ish aggregation

September 10, 2010
By
R SQL-ish aggregation

I came to R from SQL. I’ve heard that packages such as reshape and plyr are quite beautiful, but to me they are somewhat non-intuitive. I’m always looking for SELECT mean(sodium) as mean, variance(sodium) as var FROM texas GROUP BY … Continue reading →

Read more »

plyr and reshape: better, faster, more productive

September 10, 2010
By

Hadley Wickham has just released updates to his data-manipulation packages for R, plyr and reshape (now called reshape2), that are much faster and more memory-efficient than the previous incarnations. The reshape2 package lets you flexibly restructure and aggregate data using just three functions (melt, acast and dcast), whereas the plyr package is kind of like a supercharged SQL "GROUP...

Read more »

R vs. Stata, or, Different ways to estimate multilevel models

September 10, 2010
By

Cyrus writes: I was teaching a class on multilevel modeling, and we were playing around with different method to fit a random effects logit model with 2 random intercepts---one corresponding to "family" and another corresponding to "co...

Read more »