Initial impressions of RangeLab

December 30, 2011
By
Initial impressions of RangeLab

I was rummaging around in the source of R looking for trouble, as one does, when I came across what I believed to be a less than optimally accurate floating-point algorithm (function R_pos_di in src/main/arithemtic.c). Analyzing the accuracy of floating-point code is notoriously difficult and those having the required skills tend to concentrate their efforts

Read more »

MuroBBS Programming Challenge 1

December 30, 2011
By
MuroBBS Programming Challenge 1

It’s been a while since the last post. I started my studies as a statistics major in university and have been doing little with R but mostly just reading other blogs and taking our university’s R course which was just … Continue reading →

Read more »

Monetary Policy and Credit Easing pt. 6: Empirical Estimation and Methodology

December 30, 2011
By
Monetary Policy and Credit Easing pt. 6: Empirical Estimation and Methodology

IT is now appropriate to lay out our two regression models in full for empirical estimation over our two separate time periods. The first estimation is from 4/1/71 to 7/1/97 and the second is from 4/1/01 to 4/1/11. The methodology employed in the estimation of these two models is a procedure using Generalized Least Squares with a Cochrane-Orcutt, style iterated...

Read more »

Over on F1DataJunkie, 2011 Season Review Doodles…

December 30, 2011
By
Over on F1DataJunkie, 2011 Season Review Doodles…

Things have been a little quiet, post wise here, of late, in part because of the holiday season… but I have been posting notes on a couple of charts in progress over on the F1DataJunkie blog. Here are links to the posts in chronological order – they capture the evolution of the chart design(s) to

Read more »

RcppExamples 0.1.3

December 30, 2011
By

A minor new release of the RcppExamples package is now on CRAN. RcppExamples contains a few illustrations of how to use Rcpp. It grew out of documentation for the classic API (now in its own package RcppClassic), and while we added a few more funct...

Read more »

You’ve got the whole world in your portfolio

December 29, 2011
By
You’ve got the whole world in your portfolio

A famous finance professor once told us that good diversification meant holding everything in the world. Fine, but in what proportion? Suppose you could invest in every country in the world. How much would you invest in each? In a market-capitalization weighted index, you'd invest in each country in proportion to the market value of its investments (its "market capitalization")....

Read more »

Benchmarking time series models

December 29, 2011
By
Benchmarking time series models

This is a quick post on the importance of benchmarking time-series forecasts.  First we need to reload the functions from my last few posts on times-series cross-validation.  (I copied the relevant code at the bottom of this post so you don't...

Read more »

dcemriS4 0.46

December 29, 2011
By
dcemriS4 0.46

The R package dcemriS4 provides routines for the quantitative analysis of dynamic contrast-enhanced magnetic resonance imaging (DCE-MRI), along with quantification of diffusion-weighted MRI (ADC = apparent diffusion coefficient) and quantitative T2 map...

Read more »

Weecology can has new mammal dataset

December 29, 2011
By
Weecology can has new mammal dataset

So the Weecology folks have published a large dataset on mammal communities in a data paper in Ecology.  I know nothing about mammal communities, but that doesn't mean one can't play with the data...Their dataset consists of five csv files: &...

Read more »

Weecology can has new mammal dataset

December 29, 2011
By
Weecology can has new mammal dataset

So the Weecology folks have published a large dataset on mammal communities in a data paper in Ecology.  I know nothing about mammal communities, but that doesn't mean one can't play with the data... Their dataset consists of five csv fil...

Read more »

Weecology can has new mammal dataset

December 29, 2011
By
Weecology can has new mammal dataset

So the Weecology folks have published a large dataset on mammal communities in a data paper in Ecology.  I know nothing about mammal communities, but that doesn't mean one can't play with the data... Their dataset consists of five csv fil...

Read more »

Magnetic Resonance Imaging in R

December 29, 2011
By

Volume 44 of the Journal of Statistical Software was published in October 2011.  The special volume on “Magnetic Resonance Imaging in R” features articles and packages related to a variety of imaging modalities:functional MRIdiffusion-weighted MRIdynamic contrast-enhanced MRIdynamic susceptibility-contrast MRI structural MRIThe papers describe the methodology, software implementation and provide comprehensive examples and data. ...

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 »

New version of the Rcmdr package

December 29, 2011
By

This is the massage sent by John Fox to the R-pkgs mailing list: Dear R users, I’d like to announce a new version, 1.8-1, of the Rcmdr package. The Rcmdr (“R Commander”) package provides a basic-statistics graphical user interface (GUI) to R, implemented in Tcl/Tk via the standard R tcltk package. Beyond small changes and additions, the new version of...

Read more »

Japan Stagnation Myth?

December 28, 2011
By
Japan Stagnation Myth?

I came across this piece on The Atlantic website by Eamonn Fingleton arguing that Japan's two decade long stagnation is largely a myth. I'm not willing, just yet, to completely go along with his thesis that this myth has been stoked by the Japanes...

Read more »

Top Grossing Movies by Year (U.S.)

December 28, 2011
By
Top Grossing Movies by Year (U.S.)

Description:Top grossing movie year by year, adjusted for inflation.Data:http://thenumbers.comAnalysis:This is a bit of an odd chart.  It only shows the total gross of the highest grossing movie for each year.  When adjusted for inflation, 'G...

Read more »

R-specific review of blog year 2011

December 28, 2011
By
R-specific review of blog year 2011

Most popular posts Two of the ten most popular posts during the year were completely about R: The R Inferno revised (number 6) Solve your R problems (number 9) R played a role in the other eight top ten, and many of the rest of the posts as well. R The R Inferno was revised … Continue reading...

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 »

Homicides in Mexico 2010

December 28, 2011
By
Homicides in Mexico 2010

Recently the Mexican government released to the public the final homicide data for 2010, and as you can see from the chart Mexico has suffered from a steep rise in homicides since 2008, and in 2010 reached the highest homicide rate in recent history. The Mexican government had actually released preliminary homicide data...

Read more »

Rcpp 0.9.9

December 27, 2011
By

Release 0.9.9 of Rcpp is now on CRAN and getting into Debian too. This is mainly a bug fix release: our addition of int64 support in 0.9.8 came at the expense of support for long and unsigned long which broke some packages using Rcpp, and expecting t...

Read more »

oro.nifti 0.3.1

December 27, 2011
By
oro.nifti 0.3.1

The  package oro.nifti contains functions for the input/output and visualization of medical imaging data that follow either the ANALYZE, NIfTI or AFNI formats.  This package is part of the Rigorous Analytics bundle.Lightbox display of fu...

Read more »

Web scraping with Python – the dark side of data

December 27, 2011
By

In searching for some information on web-scrapers, I found a great presentation given at Pycon in 2010 by Asheesh Laroia. I thought this might be a valuable resource for R users who are looking for ways to gather data from user-unfriendly websites. The...

Read more »

oro.dicom 0.3.3

December 27, 2011
By
oro.dicom 0.3.3

The R package oro.dicom contains data input/output functions for medical imaging data that conform to the Digital Imaging and Communications in Medicine (DICOM) standard, part of the Rigorous Analytics bundle.The latest version of oro.dicom (0.3.3) con...

Read more »

Fed Loan Data Part 1

December 27, 2011
By
Fed Loan Data Part 1

This is the start of analyzing the Federal Reserve and Banking data mentioned in my "A Christmas Miracle". The file is a combination of summary data and actual data from each of the 400+ banks that recieved funds from the Federal Reserve during 2007-20...

Read more »

Monetary Policy and Credit Easing

December 26, 2011
By

Here at the dancing economist, we wish to educate our followers on the finer points of economics and this includes econometrics and using R. R as mentioned previously is a free statistical software that enables regular people like us to do high end eco...

Read more »

Just Crantastic!

December 26, 2011
By

If you're an econometrician and you don't use the R software environment - for at least some of your work, then you're missing out on all sorts of (free!) opportunities.Yes, it can be a steep learning curve, but it's worth every drop of sweat, and there are some great R community sites that will help you along...

Read more »

Modelling returns using PCA : Evidence from Indian equity market

December 26, 2011
By

As my finance term paper, I investigated an interesting question where I tried to identify macroeconomic variables that explain the returns on equities. Much of the debate has already taken place on this topic which has given rise to two competing theo...

Read more »

An R wish list for 2012

December 26, 2011
By
An R wish list for 2012

I expect there will be many reviews and wish lists for R this year, with many of them focusing on either running speed or dealing with large data sets. However, most issues that I would like to see tackled in … Continue reading →

Read more »

Le Monde puzzle [#754]

December 25, 2011
By
Le Monde puzzle [#754]

The pre-X’mas puzzle in Le Monde weekend edition is about “magical numbers” having as digits all digits between 0 and n (at least once) and being multiple of all digits between 1 and (n+1). Easy, isn’t it?! I thought so while driving down to the Alps on Saturday and (on Monday early morning) I tried

Read more »