# Monthly Archives: January 2012

## Given a room with n people in it, what is the probability any two will have the same birthday?

January 31, 2012
By

Revisiting a fun puzzle I remember first encountering as an undergraduate. Nice example of creating a plot in R using ggplot2. I also plot the probability of someone in the room having the same birthday as you. ## See http://en.wikipedia.org/wiki/Bi...

## Computational Econometrics: Aggregate Demand with Random Parameters

January 31, 2012
By

Computational Econometrics: Aggregate Demand with Random Parameters: From microeconomics we know that individuals and firms have demand curves for goods and services. But what happens when you try to get a picture of the demand for goods and services f...

## Collapse pasting in R

January 30, 2012
By

How do you take a vector in R, and paste the individual elements together?  Easy, a loop.  No, bad! **slap on the wrist**  Here’s an example why not.   So let’s start by concatenating a few character strings and showing some … Continue reading →

## Using LaTeX, R, and Sweave to Create Reports in Windows

January 30, 2012
By

LaTeX is a typesetting system that can easily be used to create reports and scientific articles, and has excellent formatting options for displaying code and mathematical formulas. Sweave is a package in base R that can execute R code embedded in LaTe...

## Explaining India’s miserable Test cricket performance in 2011/2012

January 30, 2012
By

Today when I reminded a friend not to lose hope in Indian cricket (after recent whitewash in England and Australia), another friend commented, प्रसून जी , यह भारतीय क्रिकेट है ..यहाँ पर हर विक्टरी दुसरे दिन पुरानी हो जाती है ...You have to perform at your best ... After all they are getting unexpected money. They should deliver the...

## simple shortcuts for the windows r console

January 30, 2012
By

(This article was first published on twotorials by anthony damico, and kindly contributed to R-bloggers) To leave a comment for the author, please follow the link and comment on their blog: twotorials by anthony damico. R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps,...

January 30, 2012
By

(This article was first published on twotorials by anthony damico, and kindly contributed to R-bloggers) To leave a comment for the author, please follow the link and comment on their blog: twotorials by anthony damico. R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps,...

## Pre-conference tutorials announced for useR! 2012

January 30, 2012
By

The worldwide R user conference, useR! 2012, will take place this year June 12-15 in Nashville, Tennessee. In addition to the regular program of invited and contributed talks, a highlight of every useR! is the pre-conference tutorials: hand-on, half-day in-depth expert-led sessions with a focused on a specific area of methodology with R. This year's roster of tutorials has...

## the Art of R Programming [guest post]

January 30, 2012
By

(This post is the preliminary version of a book review by Alessandra Iacobucci, to appear in CHANCE. Enjoy !) As Rob J. Hyndman enthusiastically declares in his blog, “this is a gem of a book”. I would go even further and argue that The Art of R programming is a

## The power of Rcpp

January 30, 2012
By

While ago I built two R scripts to track OMX Baltic Benchmark Fund against the index. One script returns the deviation of  fund from the index and it works fast enough. The second calculates the value of the fund every minute and it used to take for while. For example, it spent 2 minutes or