Rook 1.0-3 updated to run on rApache

January 11, 2012
By
Rook 1.0-3 updated to run on rApache

So if you’re in need of deploying that nifty Rook app you made, download the latest release 0.1-3 on my github account or wait for it to appear on CRAN. That is all.

Read more »

Survey Time

January 11, 2012
By
Survey Time

After I completed the vignette survey http://lamages.blogspot.com/2012/01/feedback-from-vignette-survey.html, I was amazed with the process, functionality, and potential R integration from Google Docs forms.  I just had to make one of my own. As I...

Read more »

Example 9.19: Demonstrating the central limit theorem

January 11, 2012
By
Example 9.19: Demonstrating the central limit theorem

A colleague recently asked "why should the average get closer to the mean when we increase the sample size?" We should interpret this question as asking why the standard error of the mean gets smaller as n increases. The central limit theorem shows t...

Read more »

Making an R Package: Not as hard as you think

January 11, 2012
By
Making an R Package: Not as hard as you think

I’ve been writing functions in R for a while to do various things like talking to APIs, web scraping, model testing and data visualisation (basically thing which can get a bit repetitive!), but have always been slightly intimidated about turning those functions into a package, which I could then call using library (package-name). Note that … Continue reading...

Read more »

Calculate umpire strikezone sizes

January 11, 2012
By

Head on over to THT, and you should see a post by yours truly about calculating the size of umpire strikezones. Here I will open source the code for how to do that. The hard part though is that in order to make use out of the code, you need to have eve...

Read more »

Another Year, Another rApache Release

January 11, 2012
By
Another Year, Another rApache Release

I’m feeling chancy, just like those two angels who took a chance on me so many years ago… So I decided to release rApache 1.1.15. You can grab the source from rapache.net. Notable change includes support for deploying Rook applications, which you

Read more »

Annual Average Retail Gas Prices (adjusted for inflation) – United States

January 11, 2012
By
Annual Average Retail Gas Prices (adjusted for inflation) – United States

Description:Annual retail gas prices since 1950, split by Leaded and Unleaded and adjusted for inflation.Data:http://www.eia.gov/totalenergy/data/annual/index.cfmAnalysis:Gas prices have spiked sharply twice since 1949.  Even though $3 per gallon ...

Read more »

Toying with Google Apps Script

January 11, 2012
By
Toying with Google Apps Script

Google offers an access to its services with Apps Scripts (JavaScript). That gives you a possibility to connect your spreadsheet to a fascinating variety of tools like geocoder, stock info, language translator, or email.My java-scri...

Read more »

R is a language

January 11, 2012
By

A commenter on this blog reminded me of one of the frustrating aspects faced by newbies, not only to R but to any other programming environment (I am thinking of typical students doing stats for the first time). The statement … Continue reading →

Read more »

Moving from blogger and wordpress to jekyll

January 11, 2012
By
Moving from blogger and wordpress to jekyll

Recology used to be hosted on Blogger, and my personal website was hosted on Wordpress. Neither platform was very satisfying. Blogger is very limited in their layouts, unless you use dynamic views, which suck because they don't allow javascript snipp...

Read more »

Running R through Stata on Mac OS

January 10, 2012
By
Running R through Stata on Mac OS

I’ve friends favouring Stata rather than R, while others do the inverse. However, few of them actually know that it is possible to work on both softwares, simultaneously inclusive. It is possible to integrate R and Stata, complementing so we can run almost all kind of analyses using them. Therefore, who prefers the Stata’s interface

Read more »

Looping through factor variables

January 10, 2012
By
Looping through factor variables

Today I was typing to a friend who is working on a Ph.D thesis about my favor issue on elections: campaign contributions. We discussed about analyzing probabilities of a particular group/category grasp more money than the others, in this case, male and female given a district. A preliminary approach should consider identify in the data

Read more »

Time Series Cointegration in R

January 10, 2012
By

Cointegration can be a valuable tool in determining the mean reverting properties of 2 time series. A full description of cointegration can be found on Wikipedia. Essentially, it seeks to find stationary linear combinations of the two vectors. The below R code, which has been modified from here, will test two series for integration and...

Read more »

Introduction to Kaggle Algorithmic Trading Challenge

January 10, 2012
By

I recently participated in the Kaggle Algorithmic Trading Competition under the username VikP. For those who do not know what Kaggle is, it is a web site where individuals and corporations can host data analysis competitions. This particular competit...

Read more »

Eisen and Elsevier have words over bill to end NIH Public Access Policy

January 10, 2012
By

This article linked below and the subsequent comments (some apparently from an Elsevier rep.) are interesting. It's not directly related to R, but is related to open source/science philosophy. Elsevier-funded NY Congresswoman Carolyn Maloney Wants to D...

Read more »

Statistical Methods for the Chain Ladder Technique Demo (CloudStat)

January 10, 2012
By
Statistical Methods for the Chain Ladder Technique Demo (CloudStat)

This demo will use a study case, how a general insurance company use CloudStat to estimate outstanding claims. Background Forecasting outstanding claims and setting up suitable reserves to meet these claims is an important part of the business of a gen...

Read more »

Using R in Ruby

January 10, 2012
By

Integrating R into more traditional programming languages can be incredibly rewarding due to R's powerful built-in statistical tools, but it can also be extremely frustrating at times. Thankfully, like much else to do with Ruby, integrating R and Ruby...

Read more »

Installing quantstrat from R-forge and source

January 10, 2012
By
Installing quantstrat from R-forge and source

R is used extensively in the financial industry; many of my recent clients have been working in or developing products for the financial sector. Some common applications are to use R to analyze market data and evaluate quantitative trading strategies. Custom solutions are almost always the best way to do this, but the quantstrat package The post Installing...

Read more »

Installing quantstrat from R-forge and source

January 10, 2012
By

R is used extensively in the financial industry; many of my recent clients have been working in or developing products for the financial sector. Some common applications are to use R to analyze market data and evaluate quantitative trading strategies. ...

Read more »

RStudio v0.95 Preview Available

January 10, 2012
By
RStudio v0.95 Preview Available

The next version of RStudio (v0.95) is now available as a preview release. Highlights include: Projects — A new system for managing R projects that enables easy switching between working directories, running multiple instances of RStudio with different projects, and per-project contexts for source documents, workspaces, and history. Code Navigation — Typeahead navigation by file

Read more »

Time Series Cointegration in R

January 10, 2012
By

Cointegration can be a valuable tool in determining the mean reverting properties of 2 time series. A full description of cointegration can be found on Wikipedia. Essentially, it seeks to find stationary linear combinations of the two vectors. The below R code, which has been modified from here, will test two series for integration and return the...

Read more »

How big is my dog going to get? A regression analysis with R

January 10, 2012
By
How big is my dog going to get? A regression analysis with R

The dog on the left is named Maya. She is a labrador retriever (field line), weighs 18 kilograms and is currently eight months old. My girlfriend and I carry the dog several times a day high in the fourth floor. … Weiterlesen →

Read more »

Introduction to Kaggle Algorithmic Trading Challenge

January 10, 2012
By

I recently participated in the Kaggle Algorithmic Trading Competition under the username VikP. For those who do not know what Kaggle is, it is a web site where individuals and corporations can host data analysis competitions. This particular competiti...

Read more »

Using R in Ruby

January 10, 2012
By

Integrating R into more traditional programming languages can be incredibly rewarding due to R's powerful built-in statistical tools, but it can also be extremely frustrating at times. Thankfully, like much else to do with Ruby, integrating R and Ruby...

Read more »

Revolution Analytics 2012 R User Group Sponsorship Program

January 10, 2012
By

On of Revolution Analytics' main missions is to support and foster the growth of the R community, and in 2011 we sponsored more than 25 local R user groups and meetings with cash donations for for venue hire, meetup.com dues, refreshments, and other group needs. We also sent hundreds of "I love R" T-shirts and stickers to group members...

Read more »

Suicide vs Divorce rates by country using ggplot

January 10, 2012
By
Suicide vs Divorce rates by country using ggplot

I was looking for data I could use with the geom_text() object in ggplot2 and came across this data from the World Health Organization about the suicide rates by country which I found very handy for my example. I used the scale_colour_gradient2() with 3 colors, red, gray and black but it only picked up gray and

Read more »

Coming of Age: R and Spatial Data Visualisation

January 10, 2012
By
Coming of Age: R and Spatial Data Visualisation

I have been using R (a free statistics and graphics sof

Read more »

Presenting results of logistic regression

January 10, 2012
By
Presenting results of logistic regression

So my advisor pointed out this 'new' (well, 2004), way of plotting results of logistic regression results. The idea was presented in a 2004 Bulletin of the Ecological Society of America issue (here). I tried to come up with a solution using, what el...

Read more »

Presenting results of logistic regression

January 10, 2012
By
Presenting results of logistic regression

So my advisor pointed out this 'new' (well, 2004), way of plotting results of logistic regression results. The idea was presented in a 2004 Bulletin of the Ecological Society of America issue (here). I tried to come up with a solution using, what el...

Read more »