Monthly Archives: July 2011

BSE Bhavcopy with Delivery Quantity

July 24, 2011
By
BSE Bhavcopy with Delivery Quantity

One of my TI forum members IV had a requirement for BSE Quotes along with Delivery Quantity. This made me implement "merge" function of R coding (thanks to the great work done by people behind various packages and guidance available on R Mailing lists)...

Read more »

Parallel JAGS RNGs

July 23, 2011
By

As a matter of convention, we usually run 3 or 4 chains in JAGS. By default, this gives rise to chains that draw samples from 3 or 4 distinct pseudorandom number generators. I didn’t go and check whether it does things 111,222,333 or 123,123,123, but in any event the “parallel chains” in JAGS are samples

Read more »

RcppArmadillo 0.2.26 and 0.2.27

July 23, 2011
By

Earlier this week, Conrad Sanderson issued a minor bug fix release 2.0.2 of his Armadillo library which provides templated C++ code for linear algebra. We wrapped that into a new RcppArmadillo release 0.2.26 and shipped it to CRAN. Due to it being su...

Read more »

Passing non-graphical parameters to graphical functions using …

July 23, 2011
By
Passing non-graphical parameters to graphical functions using …

Argument passing via ... is a great feature of the R language, allowing you to write wrappers around existing functions that do not need to list all the arguments of the wrapped function. ... is used extensively in S3 methods … Continue reading →

Read more »

Passing non-graphical parameters to graphical functions using …

July 23, 2011
By

Argument passing via ... is a great feature of the R language, allowing you to write wrappers around existing functions that do not need to list all the arguments of the wrapped function. ... is used extensively in S3 methods and in passing graphical parameters on to graphical functions. When writing you own plot methods, using ... allows the...

Read more »

RomanM’s Method

July 22, 2011
By
RomanM’s Method

I’ve succeeded in getting a version of RomanM and JeffId’s Thermal hammer working with version 1.3 of RghcnV3. This is going to be a long post because there is a lot of ground to cover. First, some errata, the “Globe” demo in V1.3 appears to have a missing line, looks like an editor bug, so

Read more »

Clustering U.S. Senators using roll call voting data

July 22, 2011
By
Clustering U.S. Senators  using roll call voting data

For our forthcoming book on machine learning for hackers, John Myles White and I will discuss clustering, and various methods for doing so. One common method for clustering observations

Read more »

IBM Netezza: Embrace open source analytics

July 22, 2011
By

Earlier this month Thomas Dinsmore, solutions architect for IBM Netezza’s Advanced Analytics team, had a great blog post on why companies should embrace R as an analytics platform. He says: There are three main reasons R should be part of your enterprise analytics architecture: R has capabilities not available in commercial analytics software Usage of R by analysts is...

Read more »

A bit of fun with R

July 22, 2011
By
A bit of fun with R

R isn't just about serious things like model inference and prediction intervals and big analytics. Sometimes, R lets its hair down and just does weird and wonderful things because ... well just because. For example, with a package from Paulo Sonego, it can display your favourite XKCD cartoon: > install.packages("RXKCD", repos="http://R-Forge.R-project.org",type="source") > searchXKCD("support") num title 1 8 Red spiders...

Read more »

A Plot of 250 Random Walks

July 22, 2011
By
A Plot of 250 Random Walks

For some reason I feel like plotting some random walks. Nothing groundbreaking, but hopefully this post will be useful to someone. Here's my R code:# Generate k random walks across time {0, 1, ... , T}T <- 100k <- 250initial.value <- 10GetRa...

Read more »