## Running JAGS via R2jags

October 20, 2009
By

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++).

## 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

## 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...

## 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 ...

## 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...

## Comments on the "R Clinic"

October 19, 2009
By

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...

## Xasax closes shop

October 18, 2009
By

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...

## GenEstim : A simple genetic algorithm for parameters estimation

October 18, 2009
By

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))

## 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...

## Software for Surviving Graduate School Part 1

October 16, 2009
By

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...

## Use R 2009 Conference

October 16, 2009
By

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...

## The optimal way to do sweave

October 16, 2009
By

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...

## Filled contour with log-log scale

October 15, 2009
By

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 <-

## 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

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

October 15, 2009
By

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

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

October 15, 2009
By

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 ...

## The Elements of Statistical Learning

October 14, 2009
By

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...

## 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,

## RPostgreSQL 0.1-5

October 13, 2009
By

A new version of RPostgreSQL just went out to CRAN and should propagate via the mirrors over the next few days. This is a maintenance and bug fix release that addresses four of the seven issue at the Google Code page. Two more are really enhancemen...

## RPostgreSQL 0.1-5

October 13, 2009
By

A new version of RPostgreSQL just went out to CRAN and should propagate via the mirrors over the next few days. This is a maintenance and bug fix release that addresses four of the seven issue at the Google Code page. Two more are really enhancement r...

## RPostgreSQL 0.1-5

October 13, 2009
By

A new version of RPostgreSQL just went out to CRAN and should propagate via the mirrors over the next few days. This is a maintenance and bug fix release that addresses four of the seven issue at the Google Code page. Two more are really enhancemen...

## Investigation the relationship between two variables using a scatter plot

October 13, 2009
By

The relationship between two variables can be visually represented using a scatter plot and will provide some insight into the correlation between the variables and possible models to describe the relationship. There are different ways to produce scatter plots in R making use of either the base graphics system, the lattice graphics library, ggplot2 or

## RExcel

October 13, 2009
By

I am not a fan of MS Windows software. However, the reality is that majority of people use it and it is often easier for me to live with this than to convert the sorounding souls. Additionally I am find ing out lately that majority of my favourite open...

## RExcel

October 13, 2009
By

I am not a fan of MS Windows software. However, the reality is that majority of people use it and it is often easier for me to live with this than to convert the sorounding souls. Additionally I am find ing out lately that majority of my favourite open...

## Example 7.15: A more complex sales graphic

October 13, 2009
By

The plot of Amazon sales rank over time generated in example 7.14 leaves questions. From a software perspective, we'd like to make the plot prettier, while we can embellish the plot to inform our interpretation about how the rank is calculated.For the latter purpose, we'll create an indicator of whether the rank was recorded in nighttime (eastern US...

## Make Shift-Enter do a lot in ESS

October 12, 2009
By

If you use Emacs and ESS to run R, then here’s a nice tweak I found on the Emacs Wiki. The following bit of elisp goes in your .emacs file (or equivalent). Starting with an R file in the buffer, hitting shift-enter vertically splits the window and starts R in the right-side buffer. If R

## Zut alors!

October 12, 2009
By

Christian: of course you will be running the Chicago 2010 marathon as your next fall marathon. Not only are Paris and Chicago jumelée (i.e. sister cities), but the Dollar is so conveniently falling vis-à-vis the Euro that you'd get all this done for about a Euro and a half by the time the race happens. Moreover, 2010 is going to be...

## Public opinion on health care reform

October 12, 2009
By

hc_appattach(hc_app) hc_fit.o1hc_fit.f1hc_fit.o2hc_fit.f2plot(as.Date(Dates),Oppose,main="Public opinion and health care reform",ylim=c(0,80),pch=16,xlim=c(as.Date("2009-01-01"),as.Date("2009-11-01")),cex.axis=.85, col="#E6ADD8",xlab="",ylab="Percentage approving or opposing") points(as.Date(Dates),Favor,pch=16,col="#ADD8E6") lines(hc_fit.f1,col="blue",lwd=2)lines(hc_fit.o1,col="red",lwd=2)lines(hc_fit.f2,col="blue",lwd=2,lty=3)lines(hc_fit.o2,col="red",lwd=2,lty=3) abline(h=50,lwd=.5,lty=3,col="#555555")