Blog Archives

Tracking my expenses

January 8, 2012
By
Tracking my expenses

One new-year resolution I made last year was to understand where my money goes. From previous experiments I know that expense tracking has to be as simple as possible. My approach is toUse my cash card as often as possible. This automatically tracks the date and some information on the vendor. Use twitter to track my cash expenses. This supplements...

Read more »

How much is a shower?

December 29, 2011
By
How much is a shower?

After looking at my heating expenses, I turned to the costs for water heating. For some time, I looked at my water meter before and after taking a shower or a bath. Quite often, I forgot one or the other measurement, but I collected about 40 observations. Here is what they look like:The data suggest that for a...

Read more »

Heating costs

December 28, 2011
By
Heating costs

In 2010, my heating costs exceeded my advance payments by about 25%. This motivated me to decompose the costs to see what drove the changes. Here is the result:The numbers refer to Euros. Read von right to left: 2010 was a cold year (+102EUR), but gas consumption in this house was relatively low (–89EUR). Also, running costs and...

Read more »

Regional differences on what drives CO2 emissions

July 20, 2011
By
Regional differences on what drives CO2 emissions

If you are investigating the change of CO2 emissions, then you might ask: Where do the changes occur? Well here is the answer.The staircase plots show the contributing factors to CO2 emissions for each continent. population refers to population effects, gdp_pcap refers to income per capita, energy_intensity refers to energy used per dollar added value, and carbon intensity...

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 »

Index decomposition with R

July 9, 2011
By
Index decomposition with R

Few days ago, I finally finished a small package ida. It enables you to analyse contributions of underlying factors to the change in an aggregate, using methods based on index number theory. These methods have become popular by, but are not restricted to, investigating the change of CO2 emissions.Here is a chart that shows what the change of population,...

Read more »

head and tail for strings

October 2, 2010
By

The functions head and tail are very useful for working with lists, tables, data frames and even functions.But they do not work on strings. It is easy to define such functions> strtail + if(n+ substring(s,1-n) + else + substring(s,nchar(s)-n+1)+ }> strhead + if(n+ ...

Read more »

Tuning Notepad++

August 12, 2010
By

Here are some tricks I collected for making Notepad++ a more comfortable text editor for me in general in for the R programming language in particular.Switch between tabs in Notepad++ with Ctrl-PageUp/DownNotepad++'s default behaviour is to use Ctrl+(S...

Read more »

use R! 2010 conference — reflections

August 4, 2010
By

From July 20-23, this year's use R! conference took place in Gaithersburg near Washington. I attended the conference as part of my holidays in the U.S. and had a good time there. I met some people, even though that is not the easiest thing for me to do, and I got some inspirations and ideas I outline below:Stat appsOne...

Read more »

Rosetta language popularity

March 13, 2010
By

Rosetta Code is a community wiki which presents how to solve various programming tasks by different programming languages. Thus, it serves as a dictionary between programming languages, but also as cookbook of programming recipes for a specific language.One unsolved (until today) programming task for R was to rank languages by popularity. I worked on it using the...

Read more »