Happy Holidays and Best Wishes for 2012

December 22, 2011
By
Happy Holidays and Best Wishes for 2012

This is just a quick note to wish you and your family a very healthy and happy holidays and wonderful New Year! I hope you enjoyed reading my blog and thank you for your comments and emails. Here is a short R code that implements an interesting idea from the Charting the Santa Claus Rally

Read more »

AQP 0.9-9 is ready: 1.0 should be out by 2012-01-01 !

December 22, 2011
By
AQP 0.9-9 is ready: 1.0 should be out by 2012-01-01 !

Version 1.0 of AQP is nearly ready-- after nearly 3 years of development, 2 years on R-Forge, and 1+ year on CRAN. Just pushed version 0.9-9 to R-Forge, and it should be on CRAN within a couple days. Recent changes are listed below, clipped from the NE...

Read more »

R 2.14.1 is released

December 22, 2011
By

Peter Dalgaard announced today the release of the new R version 2.14.1.  Bellow is the announcement.  For R users who are using windows, I suggest to also have a look at one of the following two posts, suggestion an alternative strategy for how to more easily upgrade R under Windows XP, or under windows 7 (which tends to have more permission...

Read more »

Dynamic views don’t support javascript-so reverting back to simple views

December 22, 2011
By
Dynamic views don’t support javascript-so reverting back to simple views

Sorry for the temporary loss of GitHub gists...Hopefully dynamic views will support javascript soon!!

Read more »

R 2.14.1 is released

December 22, 2011
By

Source distributions of the latest maintenance release of R, R 2.14.1, are now available. Binary distributions will begin appearing on local CRAN mirrors in the next few days. This update makes a few small improvements (such as the ability to accurately count the number of available cores for parallel processing on Solaris and Windows, and improved support of grayscale...

Read more »

ASU Tuition by Academic Year

December 22, 2011
By
ASU Tuition by Academic Year

Description:Arizona State University tuition fees from 1987-2011.Data:https://azregents.asu.edu/ABOR%20Reports/TUITION%20HISTORY.pdfAnalysis:It has been suggested that the 'cost' of tuition has remained the same throughout the years, yet the 'price' of...

Read more »

Rcpp 0.9.8

December 22, 2011
By

A new release 0.9.8 of Rcpp is now on CRAN and will also get into Debian shortly (once I finish building R 2.14.1). This release contains a few incremental changes. Romain, sponsored by by the Open Source Programs Office at Google, had released a...

Read more »

Graphing Twitter friends/followers with R (updated yet again)

December 22, 2011
By

Those of you following my occasional updates here know that I have previously posted code for graphing Twitter friend/follower networks using R (post #1. post #2). Kai Heinrich was kind enough to send me some updated code for doing so using a newer version of the extremely useful twitteR package. His very crisp, yet thoroughly

Read more »

First impressions of Doing Bayesian Data Analysis

December 22, 2011
By
First impressions of Doing Bayesian Data Analysis

About a month ago I was discussing the approach that I would like to see in introductory Bayesian statistics books. In that post I mentioned a PDF copy of Doing Bayesian Data Analysis by John K. Kruschke and that I … Continue reading →

Read more »

Partisan Bias in Fed Inflation Forecasts?

December 22, 2011
By
Partisan Bias in Fed Inflation Forecasts?

Following on from my previous post about US Federal Reserve inflation forecast errors, I decided to put together a descriptive graph to see if there might be a partisan bias to these forecast erros. Also, given all of the work in the political eco...

Read more »

Legislative Activity in the Danish Parliament

December 22, 2011
By
Legislative Activity in the Danish Parliament

As mentioned in this post, I have been using the powerful combination of the Beautiful Soup and Mechanize modules in Python to build a web scrapers. The amount of data on the web is amazing, and I believe that any quantitatively oriented social scienti...

Read more »

Quel lancer de dé faire à Serpents et Échelles ?

December 21, 2011
By
Quel lancer de dé faire à Serpents et Échelles ?

Hier soir, j’évoquais l’utilisation des chaînes de Markov au jeu Serpents et Échelles. Comme me le faisait remarquer Jean-Philippe, de manière assez étrange, les enfants sont toujours beaucoup plus content après avoir fait un 6 qu’après avoir fait un 1. Mais est-ce réellement la valeur optimale que le dé doit prendre ? Ça dépend bien sûr de la position....

Read more »

Lehmann Primiality Test in R

December 21, 2011
By

After a small frustration with the limitations of R 16-bit intergers. I think i have worked out a solution. The issue was i was implementing a bone-headed solution to the modulo/exponent step. So to recap. The Lehmann primality test is a probabilistic ...

Read more »

An R function to map your Twitter Followers

December 21, 2011
By
An R function to map your Twitter Followers

I wrote a little function to make a personalized map of who follows you or who you follow on Twitter. The idea for this function was inspired by some plots I discussed in a previous post. I also found a lot of really useful code over at flowing data he...

Read more »

A Tool Chain for Plotting Twitter Archive Retweet Graphs – Py, R, Gephi

December 21, 2011
By
A Tool Chain for Plotting Twitter Archive Retweet Graphs – Py, R, Gephi

Another set of stepping stones that provide a clunky route to a solution that @mhawksey has been working on a far more elegant expression of (eg Free the tweets! Export TwapperKeeper archives using Google Spreadsheet and Twitter: How to archive event hashtags and create an interactive visualization of the conversation)… The recipe is as follows:

Read more »

Portfolio Optimization in R, Part 3

December 21, 2011
By
Portfolio Optimization in R, Part 3

In the last post, we discussed the issue of finding the market portfolio by fitting a curve to the found efficient frontier.  Because of kinks in the frontier, we could not guarantee that the fitted curve would be concave in the area of the market...

Read more »

Record Long Term Treasury Returns

December 21, 2011
By
Record Long Term Treasury Returns

I mistakenly assume everyone knows that US Treasury Returns have been extreme in 2011.  As we near the end of the year, I thought it would be beneficial to look at the world’s best performer while incorporating some new graphical techniques.&nbs...

Read more »

Visualizing categorical data in R

December 21, 2011
By
Visualizing categorical data in R

I came across an interesting SAS macro that was used for visualizing log odds relationships of data.  This type of chart is helpful for visualizing the relationship between a binary dependent variable and a continuous independent variable.  I...

Read more »

The ‘R’ in Human [R]esources (or: a very brief introduction to the statistical package ‘R’ for HR)

December 21, 2011
By
The ‘R’ in Human [R]esources (or: a very brief introduction to the statistical package ‘R’ for HR)

I studied psychology in Marburg (Germany). At university we exclusively used SPSS. The courses were among my classmates usually not the most popular. After over 10 years in management consulting, I have noticed that little has changed to this. It’s a shame because a lot of interesting data in consulting firms and HR departments remain unused. In my role as managing director of kibit GmbH, I have placed the focus of the company on ”R” … Weiterlesen →

Read more »

Maps with R, and polygon boundaries

December 21, 2011
By
Maps with R, and polygon boundaries

With R, it is extremely easy to draw maps. Let us start with something simple, like French regions. Baptiste mentioned on his blog that shapefiles can be downloaded from http://ign.fr/ website. Hence, if you extract the zip file, it is possible to ...

Read more »

methylKit: R package for DNA methylation analysis

December 21, 2011
By

High-throughput bisulfite sequencing based methods are popular for measuring genome-wide DNA methylation levels. Here is an R package that helps with the analysis of such DNA methylation data. Although, it is still under heavy development current funct...

Read more »

Basics on Markov Chain (for parents)

December 20, 2011
By
Basics on Markov Chain (for parents)

Markov chains is a very interesting and powerful tool. Especially for parents. Because if you think about it quickly, most of the games our kids are playing at are Markovian. For instance, snakes and ladders… It is extremely easy to write down the transition matrix, one just need to define all snakes and ladders. For the one above, we...

Read more »

Basics on Markov Chain (for parents)

December 20, 2011
By
Basics on Markov Chain (for parents)

Markov chains is a very interesting and powerful tool. Especially for parents. Because if you think about it quickly, most of the games our kids are playing at are Markovian. For instance, snakes and ladders... It is extremely easy to write down th...

Read more »

Mortgage Refinance Calculator

December 20, 2011
By
Mortgage Refinance Calculator

Mortgage rates are low, considering historical rates for the last 50 years. It may be timely to consider a mortgage refinance. The image above links to a simple tool for exploring mortgage refinance, built using rapache and the yet-to-be-archived yarr package for R. Hence, there are now two mortgage-related calculators on this site: MortCalc: A

Read more »

Simulating Confidence Intervals

December 20, 2011
By
Simulating Confidence Intervals

As I am finishing up my thesis I have recently been plotting effects from many models. An important aspect of this is to show the uncertainty surrounding different estimates and effects. Following a paper by Gary King, Michael Tomz and Jason Wittenberg...

Read more »

Outliers in the European Parliament

December 20, 2011
By
Outliers in the European Parliament

Earlier this year I had a lot of fun learning how to use the BeautifulSoup and mechanize modules in python to scrape websites. My goal was to scrape the European Parliament website for information on the activity levels of the different MEPs. I struggl...

Read more »

TikZ and R

December 20, 2011
By
TikZ and R

TikZ is an awesome macro for producing beautiful graphics in LaTeX. I use it constantly as it has a very intuitive syntax, and it is easy to define global settings for your plots, ensuring that the graphics in your paper are all uniformly styled. One t...

Read more »

Simplifying Loops in R

December 20, 2011
By

One of the things I do frequently in my research is the apply some function on a large number of rows in a data set. I am a great fan of the loop structure in R, and use this a lot. I know one should always vectorize and avoid loops in R, however for m...

Read more »

Review of ‘R in Action’ by Robert I. Kabacoff

December 20, 2011
By
Review of ‘R in Action’ by Robert I. Kabacoff

By Joseph Rickert Yesterday, the cosmic randomizer placed me next to a newly minter lawyer in a crowed Los Gatos coffee shop. In three minutes of conversation I learned that that the fellow was interested in corporate law, was about to take a job that would give him a seat in the great VC/start-up game and that he had...

Read more »