Monthly Archives: July 2011

You can scrap it and write something better but let me keep R ;)

July 11, 2011
By

Ross Ikaha (via Xi'an -- thanks ;) ) gives a nice example to show why R is basically impossible to optimize: > f = function() { > if (runif(1) > 0.5) { > x = 10 > } > ...

Read more »

Example 9.2: Transparency and bivariate KDE

July 11, 2011
By
Example 9.2:  Transparency and bivariate KDE

In Example 9.1, we showed a binning approach to plotting bivariate relationships in a large data set. Here we show more sophisticated approaches: transparent overplotting and formal two-dimensional kernel density estimation. We use the 10,000 simulat...

Read more »

Tamino’s Method: Regional Temperatures

July 11, 2011
By
Tamino’s Method: Regional Temperatures

Tamino over at  Open Mind has a new post detailing his approach for calculating temperature averages. See his post here. His method is based on the Berkeley method as he notes and he uses it primarily for calculating regional or local temperature averages. Read his post for the math details behind the approach. I got

Read more »

Creating 3D geographical plots in R using RGL

July 11, 2011
By
Creating 3D geographical plots in R using RGL

I've been playing around with the rgl package in the last week, as part of an ongoing quest to come up with nice-looking (but more importantly, useful) data vizualisations. It's a nice little package, and once you've run through the excell...

Read more »

Testing an S&P 500 prediction

July 10, 2011
By
Testing an S&P 500 prediction

If a particular prediction comes true, how surprised should we be? The prediction The page that sparked my curiosity tells of a prediction made a year ago that the S&P 500 would beat its historic high by the end of 2011.  It says that at the point the prediction was made, the level of the … Continue reading...

Read more »

Reproducible blogging

July 10, 2011
By

As a fact-based blog, the posts here contain very often diagrams and data tables. To enable you to reproduce the results and insights, I include the computations as computer code.Most blogposts I write are markdown text combined (or weaved) with computer code written in the R language. I created a small package mdtools that puts the...

Read more »

Now I’m R-Blogging

July 10, 2011
By

Today a lot of great mails arrived at my inbox. In one of them I was reading I’ve just added your feed to the site. Where did this mail come from? The sender of the email was Tal Galili. He is a researcher in BioStatistics at the Tel Aviv University, very active around the internet.

Read more »

Migrating from SPSS/Excel to R

July 10, 2011
By
Migrating from SPSS/Excel to R

In this post, I give an outline for those interested in migrating from using SPSS and Excel for data processing/analysis …Continue reading »

Read more »

Heatmap tables done better, in Sweave and latex

July 10, 2011
By
Heatmap tables done better, in Sweave and latex

  I wrote before about using heatmap tables to combine the strengths of tables and graphics for nominal data. Here is a neat approach using Sweave and latex to produce an effect like in the picture. This latex code is self-contain...

Read more »

The Road to Default: Who’s getting the most screwed?

July 10, 2011
By
The Road to Default: Who’s getting the most screwed?

Let's take a look at who gets the most screwed (who loses the most money) when bond prices collapse and the United States defaults.Well until recently only about 55% of treasury's were held domestically. The rest was externally held by places like Japa...

Read more »

Sponsors

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)