# Monthly Archives: July 2010

## Make R speak SQL with sqldf

July 5, 2010
By

The R community is unique as programming communities go.  Many users of R come from academia and have a relatively extensive mathematical background.  The R community has developed in relative isolation from some other areas of programming th...

## Convergence diagnostics with MCMCglmm

July 5, 2010
By

MCMCglmm does not produce more than one chain. So the way to check convergence is to run the model twice, each with different starting values, then conduct the diagnostic with:gelman.diag(m1$Sol, m2$Sol)

## Excellent R Code Format Package

I have been looking for this type of package for several days, and luckily found it today. Unquestionable R is powerful, however, R programming is unfriendly as far as I concern, mainly due to the lack of format shortcut, which makes the R codes rathe...

## Happy 4th of July

July 3, 2010
By

library(maps)states <- data.frame(map("state", plot=FALSE))plot(states, type = "l", col = "navy", axes = FALSE, xlab = "", ylab = "")title("Happy 4th of July",  col.main = "red")

## Europe Data set:> eurodist                 Athens Barcelona…

July 3, 2010
By

Europe Data set:> eurodist                 Athens Barcelona Brussels Calais Cherbourg Cologne CopenhagenBarcelona         3313

## Get up and running with R, Sweave, and LaTex

July 2, 2010
By

There are a lot of great references on the web on how to levarage LaTeX for reporting and presentations (beamer), but as someone who is completely new to R and reproducible research, I was having a pretty hard time figuring out simply what to do (what tools, where do you edit, etc.). Eclipse as a

## Visualization of regression coefficients (in R)

July 2, 2010
By

Update (07.07.10): The function in this post has a more mature version in the “arm” package. See at the end of this post for more details. * * * * Imagine you want to give a presentation or report of your latest findings running some sort of regression analysis. How would you do it? This was exactly the question...

## The case of the missing zeroes

July 2, 2010
By

Political polling is a big industry these days, especially here in the US, and both mainstream news outlets and many of the bigger political blogs commission their own polls to measure (for example) the popularity of a sitting or candidate politician or policy. In the last week though, a very public spat has erupted between the left-leaning political blog...

## Creating a Presentation with LaTeX Beamer – Getting Started

July 2, 2010
By

The LaTeX beamer package can be used to create appealing presentations for many applications. A working knowledge of LaTeX is required but once the initial learning curve and transition is made from a visual word processor to a markup based approach the benefits are worth the initial investment of time. Title Pages In a previous post we