November 2012

Plotting letters as shapes in ggplot2

November 5, 2012 | is.R()

This post is a little more esoteric than most, but I found myself needing to solve this problem, so I’m just passing the solution on to you. The plot above shows the distribution of DW-NOMINATE scores for the 18th Congress, with party indicated ... [Read more...]

An easy mistake with returns

November 5, 2012 | Pat

When aggregating over both time and assets, the order of aggregation matters. Task We have the weights for a portfolio and we want to use those and a matrix of returns over time to compute the (long-term) portfolio return. “A tale of two returns” tells us that aggregation over time ...
[Read more...]

Why the 2012 US elections are more exciting than 2008

November 4, 2012 | Benedikt Koehler

Here’s an addition to my last post on using Wikipedia data to analyse attention for the US presidential elections 2012. Here’s another look at the interest not for the candidates’ Wikipedia pages but the general pages for the elections 2008 and 2012. Compared to the candidates’ pages, the attention for the ... [Read more...]

Picturing Trees

November 4, 2012 | quantsignals

  In this post I like to illustrate the R package “ape” for phylogenetic trees for the purpose of assembling trees. The function read.tree creates a tree from a text description. For example the following code creates and displays two … Continue reading → [Read more...]

Finishing football postings

November 4, 2012 | Wingfeet

For now this is the last post about these football data. It started in August, by now it is November. But just to finish up; the model as it should have been last week.ModelAs most of what I did is described last week, only the model as it went ... [Read more...]

Sunday Data/Statistics Link Roundup (11/4/12)

November 4, 2012 | Simply Statistics

Brian Caffo headlines the WaPo article about massive online open courses. He is the driving force behind our department’s involvement in offering these massive courses. I think this sums it up: `“I can’t use another word than unbelievable,” Caffo said. … Continue reading → [Read more...]

Wikipedia Attention and the US elections

November 3, 2012 | Benedikt Koehler

One of the most interesting challenges of data science are predictions for important events such as national elections. With all those data streams of billions of posts, comments, likes, clicks etc. there should be a way to identify the most important correlations to make predictions about real-world behavior such as: ... [Read more...]

Reordering factor levels in R plots

November 3, 2012 | Eldon

A few days ago a post doctoral researcher asked me if I could help him reorder the factor levels on a bar chart. The problem is that R automatically alphabetizes factor levels. I thought this would be fairly straight-forward but... [Read more...]

Project Euler — problem 21

November 3, 2012 | Tony

It’s been over one month since my last post on Euler problem 20, when  I was planning to post at least one on either Euler project or visualization. So I am four posts behind; I’ll try to catch up. Tonight, I’ll solve the 21st Euler … Continue reading → [Read more...]

Using R to Compare Hurricane Sandy and Hurricane Irene

November 3, 2012 | Wesley

Having just lived through two back to back hurricanes (Irene in 2011 and Sandy in 2012) that passed through the New York metro area I was curious how the paths of the hurricanes differed.  I worked up a quick graph in R using data from Unisys.  The data also includes wind speed ... [Read more...]

Simple Bayesian bootstrap

November 2, 2012 | Bogumił Kamiński

Bootstrapping is a very popular statistical technique. However, its Bayesian analogue proposed by Rubin (1981) is not very common. I was looking for an example of its implementation in GNU R and could not find one so I decided to write a snippet presen... [Read more...]
1 11 12 13 14

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)