ISO week

October 22, 2009
By

I am working with a model that produces estimates of snow water equivalent through time. Because I deal with large spatial extents, I decided to have the model produce weekly averages. The problem with this is knowing which file to access for a given d...

Read more »

Leap years

October 22, 2009
By

A quick function that when provided a numeric vector of years returns a boolean vector where TRUE == Leap year.is.leapyear=function(year){ #http://en.wikipedia.org/wiki/Leap_year return(((year %% 4 == 0) & (year %% 100 != 0)) | (year %% 400 == 0))}

Read more »

Leap years

October 22, 2009
By

A quick function that when provided a numeric vector of years returns a boolean vector where TRUE == Leap year.is.leapyear=function(year){ #http://en.wikipedia.org/wiki/Leap_year return(((year %% 4 == 0) & (year %% 100 != 0)) | (year %% 400 == 0))}

Read more »

Aggreate electoral targeting with R

October 22, 2009
By
Aggreate electoral targeting with R

Aggregate electoral targeting is the process of determining the likely hood of a citizen choosing to vote turnout), and which candidate that person is most likely to vote for (partisan bias) in a given race using historical turnout and partisan bias. The output from this targeting allows a campaign to project the likely number of voters, what percentages their...

Read more »

ggplot2: Two Color XY-Area Combo Chart

October 21, 2009
By
ggplot2: Two Color XY-Area Combo Chart

David@Work blog shows how to fill in the area between two crossing lines in an Excel chart. This post was also published as a guest-post on PTS blog. Let’s try to replicate this graph in ggplot2. First, load ggplot2 and generate the data frame to be used in the example (I am using a slightly

Read more »

InferenceR looks interesting

October 21, 2009
By
InferenceR looks interesting

I obtained a free academic copy of the InferenceR, which is a R IDE for Windows. I has several interesting features such as a visual debugger. It is definitely worth some further exploration. Of course, the problem (and the only problem for now) is tha...

Read more »

[, [[, $: R accessors explained

October 21, 2009
By
[, [[, $: R accessors explained

For more than ten years, I have been teaching R both formally and informally. One thing that I find often trips up students is the use of R’s accessors and mutators. ( For those readers not from a formal computer science background, an accessor is a method for accessing data in an object

Read more »

Lots of maps using R

October 21, 2009
By
Lots of maps using R

http://r-spatial.sourceforge.net/gallery/#fig01.RVery helpful!

Read more »

AlgoCompSynth Reading List

October 21, 2009
By

Gerhard Niehaus Algorithmic Composition: Paradigms of Automated Music Generation by Gerhard Nierhaus Iannis Xenakis Formalized Music by Iannis Xenakis Music and Architecture: Architectural Projects, Texts, and Realizations by Iannis Xenakis Harry Partc...

Read more »

The geese are migrating, and so have I

October 20, 2009
By

topsyWidgetPreload({ "url": "http%3A%2F%2Fborasky-research.net%2F2009%2F10%2F20%2Fthe-geese-are-migrating-and-so-have-i%2F", "style": "big", "title": "The geese are migrating, and so have I" }); As someone wiser than I once said, “It’s fall – time to roast footballs and play touch marshmallow.” Or something like that. It’s the time of the year when geese migrate. From somewhere to somewhere else..Somewhere south of where they started.

Read more »

Editing while running R within Emacs

October 20, 2009
By
Editing while running R within Emacs

Simply press "Ctrl + g" will return the control back to the user.

Read more »

Running JAGS via R2jags

October 20, 2009
By
Running JAGS via R2jags

I finally figure out how to run WinBUGS examples in JAGS via R2jags. JAGS is preferred over WinBUGS for its cross-platform compatibility and performance (it was written in C++).

Read more »

Some Interesting Packages in R: swfDevice, RGoogleTrends, FlashMXML, SVGAnnotation

October 19, 2009
By

I love R because there are always exciting new packages which can be far beyond your imagination. Here I’d like to introduce a couple of packages that look really awesome: 1. swfDevice: R graphics device for SWF output (by Cameron Bracken) This package is still at a pre-alpha stage but you can see a sketch now in

Read more »

RPostgreSQL 0.1-6

October 19, 2009
By

A quick bug fix released of RPostgreSQL was uploaded to CRAN earlier today; it updates last week's 0.1-5 release. An editing error left one of the helper functions broken. I also updated a few of the test scripts to also allow for optional environmen...

Read more »

RPostgreSQL 0.1-6

October 19, 2009
By

A quick bug fix released of RPostgreSQL was uploaded to CRAN earlier today; it updates last week's 0.1-5 release. An editing error left one of the helper functions broken. I also updated a few of the test scripts to also allow for optional environment ...

Read more »

RPostgreSQL 0.1-6

October 19, 2009
By

A quick bug fix released of RPostgreSQL was uploaded to CRAN earlier today; it updates last week's 0.1-5 release. An editing error left one of the helper functions broken. I also updated a few of the test scripts to also allow for optional environmen...

Read more »

Comments on the "R Clinic"

October 19, 2009
By
Comments on the "R Clinic"

Theresa Scott runs an R Clinic at Vanderbilt. Researchers bring their questions along to weekly sessions and some answers are posted on this website.  It's great to see the combination of statistical consulting services and public posting of answe...

Read more »

Xasax closes shop

October 18, 2009
By
Xasax closes shop

Six months after shutting down opentick completely Xasax (opentick's parent company) has followed suit.It looks like Xasax hit funding problems in August... Inside Market Data mentions the above in this story. Here is the full story (subscription requ...

Read more »

GenEstim : A simple genetic algorithm for parameters estimation

October 18, 2009
By
GenEstim : A simple genetic algorithm for parameters estimation

The GenEstim function presented here uses a very simple genetic algorithm to estimate parameters. The function returns the best estimated set of parameters ($estim), the AIC ($information) at each generation, and the cost of the best model ($bestcost) at each generation. Results of running the program with a logistic function : Logis = function(x,p) p]/(1+p]*exp(-p]*x))

Read more »

Dianne Reeves: Strings Attached at the CSO

October 16, 2009
By

Another trio concert at CSO, but very different from the most recent classic piano trio. Tonight was once again a chance to see Dianne Reeves (wikipedia) but this time accompanied simply by two guitarists: Russell Malone and Romero Lubambo (wikipedia). Given that Dianne Reeves (who we had seen in just a few month earlier in our neighbourgood) has plenty of stage...

Read more »

Software for Surviving Graduate School Part 1

October 16, 2009
By
Software for Surviving Graduate School Part 1

After introducing a colleague to the wonders of Dropbox today (more on that later) I realized that it might be useful to put out a list of software that is of use to graduate students. I often find that many of the software products I find indispensable are virtually unknown to many of my fellow graduate students. Certainly this...

Read more »

Use R 2009 Conference

October 16, 2009
By
Use R 2009 Conference

I did not attend the conference this year, but just read through the presentations. There is some overlap with other R-related conferences, such as R in Finance or the Rmetrics workshop. http://www.agrocampus-ouest.fr/math/useR-2009/ http://www.rinfina...

Read more »

The optimal way to do sweave

October 16, 2009
By
The optimal way to do sweave

The optimal way to do sweave may be to have a master file in LaTeX, and a separate Rnw file contains all the computations, figures, and tables. That way, it is easy to compile the LaTeX as the writing goes on without the hassle of carrying out the comp...

Read more »

Filled contour with log-log scale

October 15, 2009
By
Filled contour with log-log scale

A quick workaround to have a filled.contour plot with natural log10-log10 scale (instead of the default natural log scale) plotmat <- function(mat,main='',factor='M',MeasuredResponse='Coexistence') { X <- as.numeric(rownames(mat)) Y <- as.numeric(colnames(mat)) if(factor=='C') { Y <- Y/0.16 } rownames(mat) <- as.numeric(X) colnames(mat) <- as.numeric(Y) colorFun <- colorRampPalette(c("black","darkblue","blue","green", "orange",'yellow',"red","darkred",'white')) lX <- log(X, 10) lY <- log(Y, 10) pretty.X.at <-

Read more »

Comprehensive Change Detection Suite: Free & Available

October 15, 2009
By

October 2009 Open Data Group has launched a changed detection project on Google Code, http://code.google.com/p/change-detection/. This is an introduction and demonstration of using open source software and the Data Mining Group’s Predictive Model Markup Language (PMML) standard to perform data analytics.  Specifically, we show how using multiple Baseline models over segments can be used to detect of

Read more »

“I’m a Republican because…”, visualized with R

October 15, 2009
By
“I’m a Republican because…”, visualized with R

Visualizing user-generated statements from GOP.com to the theme of "I'm a Republican because...", using R.

Read more »

R Tutorial Series: Introduction to The R Project for Statistical Computing (Part 2)

October 15, 2009
By
R Tutorial Series: Introduction to The R Project for Statistical Computing (Part 2)

Welcome to part two of the Introduction to The R Project for Statistical Computing tutorial. If you missed part one, it can be found here. In this segment, we will explore the following topics.Importing DataVariablesWorkspace FilesConsole FilesFinding ...

Read more »

The Elements of Statistical Learning

October 14, 2009
By
The Elements of Statistical Learning

The Elements of Statistical Learning written by Trevor Hastie, Robert Tibshirani and Jerome Friedman is A-MUST-TO-READ for everyone involved in the data mining field! Now you can legally download a copy of the book in pdf format from the authors websit...

Read more »

What’s Happening, Man?

October 14, 2009
By

topsyWidgetPreload({ "url": "http%3A%2F%2Fborasky-research.net%2F2009%2F10%2F14%2Fwhats-happening-man%2F", "style": "big", "title": "What's Happening, Man?" }); There is quite a bit of activity on the AlgoCompSynth front. As you may know, I’m a SUSE Studio subscriber, and I’m building openSUSE 11.1-based appliances there. One of them is dedicated to AlgoCompSynth, and I expect to make a release in the very near future,

Read more »