Exercise in grImport

January 13, 2012
By
Exercise in grImport

Last week I used grImport for the first time. I decided to try perform another exercise using it. The task was to add voivodeship division of Poland.Standard R maps do not contain such a division. I have found it on r-forge in package  m...

Read more »

Functional ANOVA using INLA

January 13, 2012
By
Functional ANOVA using INLA

Ramsay and Silverman’s Functional Data Analysis is a tremendously useful book that deserves to be more widely known. It’s full of ideas of neat things one can do when part of a dataset can be viewed as a set of

Read more »

Retrieving RSS Feeds Using Google Reader

January 13, 2012
By
Retrieving RSS Feeds Using Google Reader

I have been working on a new package makeR to help manage Sweave projects where you wish to create multiple versions of documents that are based on a single source. For example, I create lots of monthly and quarterly reports using Sweave and the only ...

Read more »

Retrieving RSS Feeds Using Google Reader

January 13, 2012
By
Retrieving RSS Feeds Using Google Reader

I have been working on a new package makeR to help manage Sweave projects where you wish to create multiple versions of documents that are based on a single source. For example, I create lots of monthly and quarterly reports using Sweave and the only ...

Read more »

Function for phylogeny resolution

January 13, 2012
By

UPDATE: Yeah, so the treeresstats function had a problem in one of the calculations. I fixed that and added some more calulcations to the function. I couldn't find any functions to calculate number of polytomies, and related metrics. Here's a simpl...

Read more »

Function for phylogeny resolution

January 13, 2012
By
Function for phylogeny resolution

I couldn't find any functions to calculate number of polytomies, and related metrics. Here's a simple function that gives four metrics on a phylo tree object: Here's output from the gist above: ` dat $trsize 15 $numpolys 1 $numpolysbyt...

Read more »

RInside 0.2.6

January 12, 2012
By

A new version of RInside, now at 0.2.6, is now available via CRAN. RInside provides a set of convenience classes which facilitate embedding of R inside of C++ applications and programs, using the classes and functions provided by the Rcpp R and C++...

Read more »

MAT8886 Fisher-Tippett theorem and limiting distribution for the maximum

January 12, 2012
By
MAT8886 Fisher-Tippett theorem and limiting distribution for the maximum

Tomorrow, we will discuss Fisher-Tippett theorem. The idea is that there are only three possible limiting distributions for normalized versions of the maxima of i.i.d. samples . For bounded distribution, consider e.g. the uniform distribution on t...

Read more »

Sorting in R as Inefficiently as Possible

January 12, 2012
By
Sorting in R as Inefficiently as Possible

My last post of substance was all about improving your performance using R to answer programming questions that might be asked during a job interview.  So let's say you nailed the interview and got the job, but you desperately want to be fired for grand incompetence.  Never fear, your pal at librestats once again has your back. The sleep...

Read more »

Marketing Mix Lab: Multicollinearity and Ridge Regression

January 12, 2012
By
Marketing Mix Lab: Multicollinearity and Ridge Regression

In marketing mix modelling you have to be very lucky not to run into problems with multicollinearity. It’s in the nature of marketing campaigns that everything tends to happen at once: the TV is supported by radio, both are timed to coincide with the relaunch of the website. One of the techniques that is often … Continue reading...

Read more »

Stocks When Bonds are Extreme

January 12, 2012
By
Stocks When Bonds are Extreme

In Extreme Bond Returns, I did not consider the context of extreme bond returns, so let’s examine annual returns for the Dow Jones Industrial Average when bonds experience extreme annual returns.  I was very surprised that stocks performed extre...

Read more »

Visual debugger and the debug mode of the autorun R console

January 12, 2012
By

The StatET team kept their promise and delivered the autorun R console with debug mode on. This, combined with the visual debugger, makes the StatET a very appealing cross-platform environment for working with R.

Read more »

AQP Demo: Interfacing with PedonPC Databases using the ‘soilDB’ Package

January 12, 2012
By

Here is a quick, draft demo on extracting soils data from a PedonPC database, and performing some common analysis with functions from AQP. The newly released soilDB package makes it possible to rapidly extract soils data from PedonPC, local NASIS, and ...

Read more »

Scraping table from html web with CloudStat

January 12, 2012
By
Scraping table from html web with CloudStat

You need to use the data from internet, but don’t type, you can just extract or scrape them if you know the web URL. Thanks to XML package from R. It provides amazing readHTMLtable() function. For a study case, I want to scrape data: US Airline Custo...

Read more »

‘S Poetry’ and ‘The R Inferno’: Hardcopies on Sale

January 12, 2012
By

Patrick Burns' informative and entertaining books for R programmers, 'S Poetry' and 'The R Inferno', which have long been available as free downloads, are now available in an attractive hardcover format from Lulu Press and are on 25% sale through the end of January (use discount code LULUBOOKUK305). 'S Poetry', although written more than a dozen years ago for...

Read more »

Quick Update on the Components of Bond Returns

January 12, 2012
By
Quick Update on the Components of Bond Returns

In Real Squeeze, -1% Guaranteed Real Real Return! Yummy??, and Historical Sources of Bond Returns, I offer some historical perspective on the only sources of bond returns: inflation, real returns, and credit.  Assuming no credit risk in US Treasur...

Read more »

Physical books of “The R Inferno” and “S Poetry”

January 12, 2012
By
Physical books of “The R Inferno” and “S Poetry”

Hardcopy versions of both The R Inferno and S Poetry are now available for sale. Physical economy Buy The R Inferno (the version dated 2011 April 30)   Buy S Poetry Discount The publisher, Lulu, has a coupon for a 25% discount off purchases (up to a maximum of $50) that is good until the … Continue reading...

Read more »

New version of analogue (0.8-0)

January 12, 2012
By
New version of analogue (0.8-0)

Yesterday I pushed an update of my analogue package to CRAN. The new version is 0.8-0 and contains some new functions, several bug fixes and a major change arising from additions to R 2.14.x requiring all packages to have a … Continue reading →

Read more »

New version of analogue (0.8-0)

January 12, 2012
By

Yesterday I pushed an update of my analogue package to CRAN. The new version is 0.8-0 and contains some new functions, several bug fixes and a major change arising from additions to R 2.14.x requiring all packages to have a namespace. analogue now has its own namespace rather than relying on...

Read more »

Eclipse and StatET 2.0 Install For Running R

January 11, 2012
By

The Eclipse IDE with StatET plugin, developed by Stephen Wahlbrink, is one of the more (maybe the most) full-featured options for running R. I’ve written about this combination before (previous post), but the highlights include a script editor with syntax highlighting, code completion, an integrated graphics window, an advanced debug system, and the best object

Read more »

Video of “Reflections, Anecdotes, and Tips on R” by Lyndon Walker

January 11, 2012
By

This post shares the video from the talk presented On November 30 2011 by Dr Lyndon Walker (see Meetup page) at the end of year function for Melbourne R Users. Lyndon Walker (@lyndonwalker) has been using R for nearly half … Continue reading →

Read more »

Revolution Analytics: 2011 in Review, by Norman Nie

January 11, 2012
By

In this open letter to our customers, Revolution Analytics CEO Norman Nie reflects on the accomplishments of the past year. Dear Revolution Analytics Client, I wanted to take this opportunity to wish you all a happy and healthy 2012 and thank you for your support in 2011. Through the efforts of the R Community, Revolution Analytics and its clients...

Read more »

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 »