Monthly Archives: February 2011

Assessing Climate Trends: Eyeball versus Regression

February 4, 2011
By
Assessing Climate Trends: Eyeball versus Regression

In a previous post, I showed the Lower Stratospheric Temperature Anomaly (TLS) Trends (link).  A reader submitted the following comment: “The lower stratosphere temperature profile is essentially flat from ca. 1995 to the present. This approximately mirrors the temperature trend … Continue reading →

Read more »

Research position in forecasting renewable energy

February 4, 2011
By

I don’t normally post job ads except when they are within my own research group. But this one is close to my research interests, and I’d like to help the institution find someone good for the role, so I’m making an exception. It is a position for a post-doctoral researcher at the Centre for Energy

Read more »

Le Monde puzzle [#4]

February 4, 2011
By
Le Monde puzzle [#4]

A fairly simple puzzle in this weekend Le Monde magazine: given five points on a line such that their pairwise distances are 1,2,4,…,14,18,20, find the respective positions of the five points over the line and deduce the missing distances. Without loss of generality, we can set the first point at 0 and the fifth point

Read more »

Speed up your R code with C++

February 3, 2011
By
Speed up your R code with C++

Hi again, Recently, Julyan blogged about allocating memory first before modifying R objects. That’s a very useful trick that applies to most programming languages. Tonight I want to blog about something a bit more complicated and more specific to R, but which can lead to massive speed-ups: interfacing C/C++ within R codes. The rationale behind

Read more »

Japan Intentional or Accidental Pursuit of Deflation

February 3, 2011
By
Japan Intentional or Accidental Pursuit of Deflation

Japan’s intentional or accidental pursuit of deflation has caused an imbalance far greater than Bernanke’s pursuit of inflation.  Japanese policymakers have allowed Yen appreciation versus all other currencies.  It appears that they recog...

Read more »

Regular expressions, an example

February 3, 2011
By

Why regular expressions are your friend. This is written in Stata but applies to any language where regular expressions exist.Original version if length("`qx'")==3 { /*ex: 5q0*/ ...

Read more »

Mixed Models – Part 1

February 3, 2011
By
Mixed Models – Part 1

Very brief. Have been exploring mixed models in R using nlme::lme. Am looking forward to understanding them more, they’re going to be used more and more in years to come I’ve no doubt of that. Here are some scripts, very rough, for diagnostics when running simple 2 levels, or models with 1 grouping variable. CLICK

Read more »

R in production systems

February 2, 2011
By
R in production systems

R is great for prototyping models.  Not so great if those models have to run a business.  Here’s some tips to help with that: Validate, alert, and monitor Sink Use 64-bit Linux Write your own functions tryCatch Validate, alert, and monitor:  Sooner or later something is going to go wrong with your model.  Maybe some

Read more »

Fixing Up smoothScatter Heat Maps

February 2, 2011
By
Fixing Up smoothScatter Heat Maps

A while back, I posted an article using the smoothScatter function in R that builds a color representation of density for scatter plots. When I first found the function, I was extremely excited because it's a very easy and automated way to make a heat...

Read more »

Fixing Up smoothScatter Heat Maps

February 2, 2011
By
Fixing Up smoothScatter Heat Maps

A while back, I posted an article using the smoothScatter function in R that builds a color representation of density for scatter plots. When I first found the function, I was extremely excited because it's a very easy and automated way to make a heat...

Read more »