R: Nutrient intake data, mixed methods analysis for males

December 29, 2011
By
R: Nutrient intake data, mixed methods analysis for males

To recap:we've cleaned the data (see earlier posts)we're up to constructing the output data that will be used to estimate the population distribution values for the particular nutrient we are examining (energy)The code below is my implementation of the...

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 »

Nutrient intake data, finalising the data in R

December 28, 2011
By

I run plain R in the normal gui under Windows 7, which means no bells and whistles. This means that I find the R gui somewhat awkward to program in. Thanks to advice I received a number of years ago, I use Notepad ++ as my programming environment. It h...

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 »

Nutrients consumed daily, R analysis story board

December 28, 2011
By

With any relatively complicated programming task, I prefer to first create a story board that provides the steps I will take to complete the overall task. This may end up being a heavily edited post if I find that my plans change part way through.The p...

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 »

Data preparation for analysis, use VBA

December 27, 2011
By

Data on daily nutrient intake information is stored within a database, and the users are extracting the relevant data on a nutrient-by-nutrient basis through an export procedure. The exported data is being stored in Excel 2010 data sets, one for each n...

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 »

Portfolio Optimization in R, a previous error.

December 25, 2011
By

I realized that I made a mistake in the calculation of the market weight portfolio from the previous post.  I hold constant the portfolio weights through time. These should be adjusted after each day as prices change.  The market portfolio re...

Read more »

Sponsors

Mango solutions



RStudio homepage



Zero Inflated Models and Generalized Linear Mixed Models with R

Dommino data lab

Quantide: statistical consulting and training



http://www.eoda.de





ODSC

ODSC

CRC R books series





Six Sigma Online Training





Contact us if you wish to help support R-bloggers, and place your banner here.