# Monthly Archives: December 2013

## Calculating Customer Lifetime Value with Recency, Frequency, and Monetary (RFM)

December 23, 2013
By

Introducing Customer Lifetime Value (CLV) Customer Lifetime Value is “the present value of the future cash flows attributed to the customer during his/her entire relationship with the company.”1 There are different kinds of formulas, from simplified to advanced, to calculate CLV.  But the following one might be the one being used most commonly:- Where, t

## 24 Days of R: Day 22

December 22, 2013
By

I like to use Goodreads to keep track of which books I'm reading (and not reading). They very helpfully sent me an e-mail to inform me how many books I've read so far in 2013. The number is 19. Hardly an impressive number, but between job, family and trying to develop my R skills, I'm

## Pharmacology data from Open PHACTS in R

December 22, 2013
By

Where I reported yesterday the initial steps of an client R package for Open PHACTS, I can now report the first pharmacology data import:

## The Relationship between Vectorized and Devectorized Code

December 22, 2013
By

Introduction Some people have come to believe that Julia’s vectorized code is unusably slow. To correct this misconception, I outline a naive benchmark below that suggests that Julia’s vectorized code is, in fact, noticeably faster than R’s vectorized code. When experienced Julia programmers suggest that newcomers should consider devectorizing code, we’re not trying to beat

December 22, 2013
By

The ggmap package can be used to access maps from the Google Maps API and there are a number of examples on various statistics related blogs. These include here, here and here. The ggmap package has a function get_map that can download maps from various sources including Google Maps. require(ggmap) The first example specifies the

## A new Oce coastline

December 22, 2013
By

Part 1: coastal applications The oce package has a world coastline file that is visibly crude on a scale suitable for continental-shelf work.  At the cost of about 1 Mbyte of storage, a candidate for a replacement is a 1:10million scale version downloaded from naturalearthdata.com (full link below). As illustrated below with plots near two oceanographic centres, this candidate provides...

## Judgmental forecasting experiment

December 22, 2013
By

The Centre for Forecasting at Lancaster University is conducting some research on judgmental forecasting and model selection. They hope to compare the performance of judgmental model selection with statistical model selection, in order to learn how to best design forecasting support systems. They would like forecasting students, practitioners and researchers to participate, and are offering £50 Amazon Gift Cards...

## 24 Days of R: Day 21

December 21, 2013
By

I drove through Tennessee today. Despite having grown up in Kentucky, I had never really noticed the Tennessee flag, but earlier this year, while in Nashville, I saw it and thought it was one of the cooler state flags. I downloaded a PNG file of the flag from wikicommons and tried to do what I

## Open PHACTS from R

December 21, 2013
By

Nothing much going to say about it, and just to report some progress:

## Analysis of experimental data with R

December 21, 2013
By

It's been a while since my last video, with good reason: I started a full time job as a senior statistician about 2 months ago! Not that I spend my entire day coding in R, but I wouldn't be nearly as useful if I didn't know how to use it. Anyway, whil...