Monthly Archives: October 2010

Code Snippets in Revolution R

October 4, 2010
By

Ajay Ohri has been trying out the Code Snippets feature in Revolution R (available free to academics), and has found it handy for writing code for statistical analysis: Now even if you are averse to using a GUI /or GUI creators don’t have your particular analysis you can basically type in code at an extremely fast pace. It is...

Read more »

The ARIMAX model muddle

October 4, 2010
By
The ARIMAX model muddle

There is often confusion about how to include covariates in ARIMA models, and the presentation of the subject in various textbooks and in R help files has not helped the confusion. So I thought I’d give my take on the issue. To keep it simple, I will only describe non-seasonal ARIMA models although the ideas

Read more »

A tale of two returns

October 4, 2010
By
A tale of two returns

It was the best of times, it was the worst of times. As you may have guessed, this is a mashup of a novel by Charles Dickens and an explanation of financial returns. The key plot element of A Tale of Two Cities is that there are two men, Charles Darnay and Sydney Carton, who … Continue reading...

Read more »

V3 Station mash up

October 3, 2010
By
V3 Station mash up

Hmm, lets see how a fusion table works with map maker. The process works like this. We read in the GHCN inventory file into R. ( see code below ) We then clean it up ( the names fields and missing values) and we output it to a  *csv  file. Then open the csv in

Read more »

More BLAS, BLASter, BLAStest: Updates on gcbd

October 3, 2010
By
More BLAS, BLASter, BLAStest: Updates on gcbd

Following up on my initial post announcing gcbd, here is a brief note on a new version. The initial post announced version 0.2.2 which was the first CRAN version of gcbd. I updated to 0.2.3 when I made the aforementioned first blog post about gcbd w...

Read more »

Le Monde puzzle [34]

October 3, 2010
By
Le Monde puzzle [34]

Since the puzzle in this week (-end) edition of Le Monde is not (easily) solvable via an R program, I chose to go back to an older puzzle that my students can solve. Eleven token are distributed around a 200 meter perimeter-long ring. They all start moving at the same speed, 18km/h, in

Read more »

ICOADS

October 3, 2010
By
ICOADS

Just a short update on ICOADS. I started out an ICOADS project with grand plan to reprocess the observation files into a “raster” format. That ends up being a really big job. Along the way I had to learn a new package Rcurl and relearn some old Unix skills for compiling RCurl. Along the way

Read more »

Plotting time vs date in R

October 2, 2010
By
Plotting time vs date in R

Having done the plot with python+matplotlib, thought I would have a go reproducing it in R, using only the builtin "plot". So, just to recap - this is a plot of the sun times (rise/set,twilight and blinding) as generated by the great python library pyephem. The R code reads in a csv file as output from a...

Read more »

Here is how to improve your charts, graphs, maps, and…

October 2, 2010
By
Here is how to improve your charts, graphs, maps, and…

Here is how to improve your charts, graphs, maps, and plots: Erase non-data ink. Erase redundant data ink. Maximize the ratio of data to ink. Show data variation, not design variation. The surface area of graphical elements should be directly proportio...

Read more »

ProjectTemplate Version 0.1-3 Released

October 2, 2010
By

I’ve just released the newest version of ProjectTemplate. The primary change is a completely redesigned mechanism for automatically loading data. ProjectTemplate can now read compressed CSV files, access CSV data files over HTTP, read Stata, SPSS and RData binary files and even load MySQL database tables automatically. For my own projects, this is a big

Read more »