Baby Got Stats!

February 8, 2009
By

I was completely tickled last year with the oh so amusing Statz Rappers. It kept me and my nerdy stats friends laughing for days. Rapping. Stats. The Internet. Good times. But little did I know that rapping about statistics was really just hitting its stride on youtube. This is Why We Plot began my trip

Read more »

ave

February 8, 2009
By

I discovered a new, very useful, R function yesterday: ave. This is what it does: “Subsets of ‘x‘ are averaged, where each subset consist of those observations with the same factor levels.” But interestingly, you can use any function other than average. The output of that function is set against each observation. I wanted

Read more »

R: Calculating all possible linear regression models for a given set of predictors

February 6, 2009
By
R: Calculating all possible linear regression models for a given set of predictors

Although the graphic at the left might not seem a 100% appropriate, it gives a hint to what I am about to do. I want to calculate all possible linear regression models with one dependent and several independent variables. I do not want to address bias and fitting issues or the question if this

Read more »

Analysis of Variance (ANOVA) using R

February 5, 2009
By
Analysis of Variance (ANOVA) using R

I found some useful websites showing examples of how to use R for various sorts of ANOVA (between, within, mixed designs, etc): Using R for Psychological Research Quick-R for SAS/SPSS/Stata users enjoy

Read more »

R-Sessions 31: Combining lmer output in a single table (UPDATED)

February 5, 2009
By

There are various ways of getting your output from R to your publication draft. Most of them are highly efficient, but unfortunately I couldn’t find a function that combines the output from several (lmer) models and presents it in a single table....

Read more »

If I Had a Text File, I’d Hack Regexes in the Morning

February 4, 2009
By
If I Had a Text File, I’d Hack Regexes in the Morning

Yesterday the topic of academic citation counts came up, so I decided that I should write up some tools for exploring cite counts. The first thing I did was to build a cheap screenscraper in Ruby for pulling citation count information from Google schol...

Read more »

Correct Datetime / POSIXct behaviour for R and kdb+

February 3, 2009
By

We have started to look into kdb+ as a possible high-performance column-store backend. Kx offers free trials -- and so I have played with this for a day or two, both the general system, data loads and dumps and in particular with the interface to R, Based on the few files (one C source with interface code, one R file to access the...

Read more »

Online R programming resources

February 2, 2009
By

R can legitimately be called both a programming language and a statistical package. Many books address both the programming and statistical components of R, but invariably the discussion of statistical topics is more detailed than the discussion of pr...

Read more »

Don’t group Figures in Word

Don’t group Figures in Word

One of my ongoing annoyances with Microsoft Word is its inability to handle figures in a consistent way. The last quirk I discovered is the following: if you group a figure with a textbox -- something often done for creating captions -- the print quali...

Read more »

A Handbook of Statistical Analyses Using R – Everitt and Hothorn (2006)

January 31, 2009
By

Title: A Handbook of Statistical Analyses Using RAuthor(s): Brian S. Torvitt; Torsten HothornPublisher/Date: Chapman & Hall/2006Statistics level: Intermediate to advancedProgramming level: Intermediate Overall recommendation: Highly recommended ...

Read more »

State-of-the-art in parallel computing with R: New paper

January 30, 2009
By

A few weeks ago, we finished a paper that surveys the current state of parallel computing with R. The paper was lead by Markus Schmidberger and written while he was visiting the Fred Hutchinson Cancer Research Center in Seattle. The co-authors are Martin Morgan, myself, Hao Yu, Luke Tierney and Ulrich Mansmann. The paper is now available as a technical report from LMU...

Read more »

Importing Generic Function from Other Package: A Tip on Writing a R Package

January 30, 2009
By

I did not know this and had to spend the whole week to figure out what's wrong with my code. I was updating the mi package. While I was doing code checking procedure, I always got a error message that I did not know what was going on. I remember last...

Read more »

Importing Generic Function from Other Package: A Tip on Writing a R Package

January 30, 2009
By

I did not know this and had to spend the whole week to figure out what's wrong with my code. I was updating the mi package. While I was doing code checking procedure, I always got a error message that I did not know what was going on. I remember last...

Read more »

Visualizing Eigenfactors

January 30, 2009
By

These interactive graphics are simply beautiful. And they just so happen to be profoundly informative about the structure of modern science as well. Here’s to the hope that we will see more work from Moritz Stefaner soon that shows how our aesthetic ...

Read more »

Runing R in the Command Mode in the Window system

January 29, 2009
By

Just when I am about to convert myself into a Linux user, I found this. Running R in the command mode in the Window system is much faster. Here is a simple test:in the Window interface:> system.time(rnorm(1000000)%*%rnorm(1000000)) user system elapsed 1.06 0.05 1.14 in the...

Read more »

Runing R in the Command Mode in the Window system

January 29, 2009
By

Just when I am about to convert myself into a Linux user, I found this. Running R in the command mode in the Window system is much faster. Here is a simple test:in the Window interface:> system.time(rnorm(1000000)%*%rnorm(1000000)) user system elapsed 1.06 0.05 1.14 in the...

Read more »

MCMCglmm package for R

January 29, 2009
By
MCMCglmm package for R

Jarrod Hadfield published MCMCglmm package on CRAN. The package can fit generalised linear mixed models via MCMC methods. Bellow is the abstract from the vignette. The list of supported models is quite impressive. Nice job Jarrod! This is not the first...

Read more »

InDesign: Export Selection to PDF

InDesign: Export Selection to PDF

I abuse Adobe InDesign sometimes for creating artwork, for instance to make gant diagrams. Usually, I do not want to export a complete page to pdf in those cases, but only the boxes and text that’s going to make up the illustration. Automaticatio...

Read more »

Controlling margins and axes with oma and mgp

January 26, 2009
By

When creating graphs, we're usually most concerned with what happens near the center of our displays, as this is where most of the important information is generally held. But sometimes, either for aesthetics or clarity, we want to adjust what's outsi...

Read more »

New CRAN Task View on HPC

January 24, 2009
By

A while back, I suggested to Achim to add a new CRAN Task View for High Performance Computing with R. And as of a day or two ago, we now have the new CRAN Task View for High Performance Computing with R providing an overview about available packages, grouped thematically, with a focus on the various parallel computing application. I have...

Read more »

Data Analysis and Graphics Using R – Maindonald and Braun (2003)

January 23, 2009
By

Title: Data Analysis and Graphics Using R: An Example-Based ApproachAuthor(s): John Maindonald; John BraunPublisher/Date: Cambridge University Press/2003Statistics level: Intermediate to advancedProgramming level: Beginner to intermediate Overall recom...

Read more »

R Programmer – Calgary

January 23, 2009
By

Originally posted on r-sig-jobs listserv: Hello All, We are in ned of an R programmer for a project in Calgary, Alberta, Canada. We need the person to be local as the project involves coordination of a series of experts. The project is only about 150...

Read more »

Install JAGS and rjags in Fedora

January 23, 2009
By

JAGS was developed to help those non-Window users to be able to use BUGS. However, I found it is very hard to install JAGS and its R package-rjags. Here is my note on how to install JAGS and rjags in Fedora 10. The note here should work for all Linu...

Read more »

Install JAGS and rjags in Fedora

January 23, 2009
By

JAGS was developed to help those non-Window users to be able to use BUGS. However, I found it is very hard to install JAGS and its R package-rjags. Here is my note on how to install JAGS and rjags in Fedora 10. The note here should work for all Linu...

Read more »

R: Combining vectors or data frames of unequal length into one data frame

January 23, 2009
By
R: Combining vectors or data frames of unequal length into one data frame

Today I will treat a problem I encounter every once in a while. Let’s suppose we have several dataframes or vectors of unequel length but with partly matching column names,  just like the following ones: df1 <- data.frame(Intercept = .4, x1=.4, x2=.2, x3=.7) df2 <- data.frame(Intercept = .5,        x2=.8       ) This for example may occur when fitting several

Read more »

Interesting tip about multicolor title of a plot

January 23, 2009
By
Interesting tip about multicolor title of a plot

I'd like to suggest to take a look at this interesting post about creating a title with multi-coloured words.

Read more »

EMBL Heidelberg seeks a Bioinformatician / Data Analyst

January 21, 2009
By

Originally posted on r-sig-jobs listserv: Hello, Might be interesting for some of you: Bioinformatician / Data Analyst Grade: 5 or 6, depending on experience EMBL site: EMBL Heidelberg Commencing date: As sooon as possible, after closing date (28 February 2009) read more

Read more »

Vacancy postdoc computational systems biology – Amsterdam

January 21, 2009
By

Originally posted on r-sig-jobs listserv: *Postdoc Position Computational Systems Biology 'Systems Bioinformatics: Computational Modelling Methods' f/m * * VU University Amsterdam, the Netherlands * *Research project * read more

Read more »

Sweave.sh plays with weaver

January 21, 2009
By
Sweave.sh plays with weaver

After adding support for the cacheSweave package (see here) I have also added support for the weaver package to my Sweave.sh script. The experimental version is available here. After testing and feedback I will upload it to CRAN. One can use this new f...

Read more »