January 2011

Trends in partisanship by state

January 24, 2011 | Andrew Gelman

Matthew Yglesias discusses how West Virginia used to be a Democratic state but is now solidly Republican. I thought it would be helpful to expand this to look at trends since 1948 (rather than just 1988) and all 50 states... [Read more...]

Merge Me Baby One More Time!

January 24, 2011 | jebyrnes

OK – has this ever happened to you? You are working with a team of collaborators all using a common dataset – maybe from an Agency, and LTER, or someone else’s data altogether. Each of you has some task – incorporating new data, running fancy models and putting the results back into ... [Read more...]

Paying interest and the number e

January 24, 2011 | Pat

Suppose I borrow a dollar from you and I’ll pay you 100% interest at the end of the year.  How much money will you have then? $1 * (1 + 1) = $2 What happens if instead the interest is calculated as  50% twice in the year? $1 * (1.5 * 1.5) = $2.25 After … Continue reading →
[Read more...]

Blackbox trading Strategy using Rapidminer and R

January 23, 2011 | a Physicist

This my first post in 2011. this post has cost me a bit more than usual, but I hope it meets expectations. The aim of this tutorial is to generate an algorithm based on black box trading, with all the necessary elements for evaluation. That is a first post of several, ... [Read more...]

CRANberries is now tweeting

January 23, 2011 | Thinking inside the box

The CRANberries service (which reports on new and updated CRAN packages for the R language and environment) is now tweeting about new packages. Simply follow @CRANberriesFeed to receive theses messages. For the technically minded, adding this to the... [Read more...]

STATA: Regular expressions

January 23, 2011 | Ari F.

A regular expression allows you to do a moderately fancy search (and replace if you want). So say you wanted to replace all the "Dennis"s in a variable with "Awesome"s, but only if they're at the end of the line. You could try:-replace PBFnamevar = r... [Read more...]

Merging Multiple Data Frames in R

January 23, 2011 | Matt Bogard

Earlier I had a problem that required merging 3 years of trade data, with about 12 csv files per year. Merging all of these data sets with pairwise left joins using the R merge statement worked (especially after correcting some errors pointed out by Ha...
[Read more...]

Flexibility of R Graphics

January 21, 2011 | Matt Bogard

(note scroll all the way down to see 'old code' and 'new more flexible code' Recall and older post that presented overlapping density plots using R (Visualizing Agricultural Subsidies by KY County) see image below.The code I used to produce this plot m...
[Read more...]

Posted Question for R Users

January 21, 2011 | Matt Bogard

I recently undertook a project where a colleague had about 12 .csv files that they wanted to merge. Each file had a common (key) variable 'Partner' (which is trading partner) with differing columns (variables) except for the common key variable. Actual...
[Read more...]

Learning R through baseball: sab-R-metrics

January 21, 2011 | David Smith

The words "statistics" and "baseball" are often found near each other, but there's a lot more to statistics than dividing the number of hits by the number of swings to get a batting average. And there's a lot more to sabermetrics -- the statistical analysis of baseball -- than averages, ... [Read more...]

Embedding a time series with time delay in R

January 21, 2011 | ucfagls

I’ve recently been looking at Martin Trauth‘s book MATLAB® Recipes for Earth Sciences to try to understand what some of my palaeoceanography colleagues are doing with their data analyses (lots of frequency domain time series techniques and a preponderance of … Continue reading → [Read more...]
1 2 3 4 5 11

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)