Monthly Archives: March 2012

Japan Trade by Geographic Region

March 12, 2012
By
Japan Trade by Geographic Region

To further the analysis presented in Japanese Trade and the Yen, I thought I would take the more granular data provided by the Japanese Ministry of Finance on trade by geographic region.  Of course, I will use R to read, analyze, and plot the .csv...

Read more »

A Julia version of the multinomial sampler

March 12, 2012
By

In the previous post on RcppEigen I described an example of sampling from collection of multinomial distributions represented by a matrix of probabilities.  In the timing example the matrix was 100000 by 5 with each of the 100000 rows summing...

Read more »

Basic Introduction to ggplot2

March 12, 2012
By
Basic Introduction to ggplot2

This is a very basic introduction to the ggplot2 package.  A much more detailed description of the package can be found in this book ggplot2: Elegant Graphics for Data Analysis. On his website (http://had.co.nz/ggplot2/) package author Hadley Wickham describes ggplot2 asa plotting system for R, based on the grammar of graphics, which tries to take...

Read more »

The R-Podcast Screencast 1: Basic Interaction with R

March 12, 2012
By

Here is the inaugural R-Podcast Screencast: Basic Interaction with R. This screencast contains audio from episode 3 of the R-Podcast. In this screencast I demonstrate how to create a vector of numerical data, calculating means, installing and loading packages, and getting help for a function. You can find the R code demonstrated in this episode

Read more »

XYZ geographic data interpolation, part 3

March 12, 2012
By
XYZ geographic data interpolation, part 3

This will be probably be a final posting on interpolation of xyz data as I believe I have come to some conclusions to my original issues. I show three methods of xyz interpolation:1. The quick and dirty method of interpolating projected xyz points (bi-linear)2. Interpolation using Cartesian coordinates (bi-linear)3. Interpolation using spherical coordinates and...

Read more »

useR! 2012 Abstract Submission Deadline Today!

March 12, 2012
By
useR! 2012 Abstract Submission Deadline Today!

useR! 2012 is just around the corner. The deadline for talk and poster abstract submissions is today! Submit your abstract here.

Read more »

The quality of variance matrix estimation

March 12, 2012
By
The quality of variance matrix estimation

A bit of testing of the estimation of the variance matrix for S&P 500 stocks in 2011. Previously There was a plot in “Realized efficient frontiers” showing the realized volatility in 2011 versus a prediction of volatility at the beginning of the year for a set of random portfolios.  A reader commented to me privately … Continue reading...

Read more »

Compiling government positions from the Manifesto Project data with R

March 12, 2012
By
Compiling government positions from the Manifesto Project data with R

The Manifesto Project (former Manifesto Research Group, Comparative Manifestos Project) has assembled a database of ‘quantitative content analyses of parties’ election programs from more than 50 countries covering all free, democratic elections since 1945′ and is freely accessible online. The … Continue reading →

Read more »

Change in life expectancy animated with geo charts

March 12, 2012
By
Change in life expectancy animated with geo charts

The data of the World Bank is absolutely amazing. I had said this before, but their updated iPhone App gives me a reason to return to this topic. Version 3 of the DataFinder App allows you to visualise the data on your phone, including motion maps, see...

Read more »

Generating a lag/lead variables

March 11, 2012
By
Generating a lag/lead variables

A few days ago, my friend asked me is there any function in R to generate lag/lead variables in a data.frame or did similar thing as _n in stata. He would like to use that to clean-up his dataset in R. In stata help manual: _n contains the number of the current observation. Here’s an

Read more »

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)