2122 search results for "Twitter"

Clustering NHL Skaters

February 6, 2011
By
Clustering NHL Skaters

I have been sitting on this post for some time now and wanted to get it out there.  The goal is to simply show how easy it is to pull live data from the web into R, massage it, and perform some analytics on it.  I am not sure how useful this analysis really is

Read more »

Duck typing with quantmod

February 4, 2011
By
Duck typing with quantmod

This is a short example of using duck typing in a guard statement in the futile.paradigm. We are implementing a …Continue reading »

Read more »

Latent Gaussian Models in Zürich [day 1]

February 4, 2011
By
Latent Gaussian Models in Zürich [day 1]

An interesting first day (for me) at the Latent Gaussian Models workshop in Zürich. The workshop is obviously centred at the INLA approach, with Havard Rue giving a short course on Wednesday then a wide ranging tour of the applications and extensions of INLA this afternoon. Thanks to his efforts in making the method completely

Read more »

Le Monde puzzle [#4]

February 4, 2011
By
Le Monde puzzle [#4]

A fairly simple puzzle in this weekend Le Monde magazine: given five points on a line such that their pairwise distances are 1,2,4,…,14,18,20, find the respective positions of the five points over the line and deduce the missing distances. Without loss of generality, we can set the first point at 0 and the fifth point

Read more »

Speed up your R code with C++

February 3, 2011
By
Speed up your R code with C++

Hi again, Recently, Julyan blogged about allocating memory first before modifying R objects. That’s a very useful trick that applies to most programming languages. Tonight I want to blog about something a bit more complicated and more specific to R, but which can lead to massive speed-ups: interfacing C/C++ within R codes. The rationale behind

Read more »

Mixed Models – Part 1

February 3, 2011
By
Mixed Models – Part 1

Very brief. Have been exploring mixed models in R using nlme::lme. Am looking forward to understanding them more, they’re going to be used more and more in years to come I’ve no doubt of that. Here are some scripts, very rough, for diagnostics when running simple 2 levels, or models with 1 grouping variable. CLICK

Read more »

A legitimate use for the stupidest variable name ever

February 2, 2011
By
A legitimate use for the stupidest variable name ever

The help page to make.names describes how to make a valid variable name in R: A syntactically valid name consists of letters, numbers and the dot or underline characters and starts with a letter or the dot not followed by a number. Names such as ‘”.2way”’ are not valid, and neither are the reserved words.

Read more »

Teach Yourself How to Create Functions in R

February 1, 2011
By
Teach Yourself How to Create Functions in R

As you can tell from my previous posts, I am diving in head first into learning how to program (and simplify) my analytical life using R.  I have always learned by example and have never really prospered from the “learn from scratch” school of thought.  As I follow along with some other fellow R programmers,

Read more »

Tricks to manage memory in an R session

January 31, 2011
By

Unless you're using an out-of-memory solution to manage large data objects (such as the RevoScaleR package in Revolution R Enterprise), then R always allocates memory for every object in your working session. If you're working with many objects (or even just a few large objects) then you'll need to take care to manage R's memory usage to avoid the...

Read more »

ABC model choice not to be trusted [3]

January 30, 2011
By
ABC model choice not to be trusted [3]

On Friday, I received a nice but embarrassing email from Xavier Didelot. He indeed reminded me that I attended the talk he gave at the model choice workshop in Warwick last May, as, unfortunately but rather unsurprisingly giving my short span memory!, I had forgotten about it! Looking at the slides he joined to his

Read more »