2012

Another look at ideology of the US congress

November 5, 2012 | David Smith

In response to last week's post on the rapidly increasing ideology of the US Republican Party, Mike Lawrence suggested another way of looking at the DW-NOMINATE ideology data. Rather than simply looking at boxplots of the congress scores by party over time, we could fit a smooth curve to get ... [Read more...]

RInside 0.2.9

November 5, 2012 | Thinking inside the box

A new version 0.2.9 of RInside arrived on CRAN earlier today; Windows binaries have already been built too. RInside provides a set of convenience classes which facilitate embedding of R inside of C++ applications and programs, using the classes and ... [Read more...]

OOP with Rcpp modules

November 5, 2012 | romain francois

The purpose of Rcpp modules has always been to make it easy to expose C++ functions and classes to R. Up to now, Rcpp modules did not have a way to declare inheritance between C++ classes. This is now fixed in the development version, and t... [Read more...]

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...]
1 26 27 28 29 30 170

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)