Blog Archives

Equality of Covariances Matrices Test in R (varcomp)

October 9, 2011
By
Equality of Covariances Matrices Test in R (varcomp)

This is a piece of code I implemented in 2004, which was supposed to be part of an R-package in multivariate testing (to be named, rather creatively, mvttests). Time has flown, I haven’t still got around to implementing the said package, but people keep asking me for the varcomp function, so here it is, for

Read more »

Sphericity Test for Covariance Matrices in R (sphericity.test)

October 9, 2011
By
Sphericity Test for Covariance Matrices in R (sphericity.test)

This is a piece of code I implemented in 2004, which was supposed to be part of an R-package in multivariate testing (to be named, rather creatively, mvttests). Time has flown, I haven’t still got around to implementing the said package, but people keep asking me for the sphericity.test function, so here it is, for

Read more »

R2HTML Package

August 1, 2010
By
R2HTML Package

Introduction R2HTML is an R package, written and maintained by Eric Lecoutre currently maintained by me. It provides functions and methods to output different R objects to HTML files. It also has a Sweave driver to allow parsing of HTML files containing R code and automatically write the corresponding outputs. Current released version: 1.59 Download

Read more »

Multiple Assignments or the Idiosyncrasies of R and SAS

May 8, 2008
By
Multiple Assignments or the Idiosyncrasies of R and SAS

Working on top of someone else’s code at work a couple of weeks ago I stumbled upon a piece of SAS code that went like this: View Code SAS1 2 3 length check 3; ... check = Name = 'Netter' Being raised in the land of open-source and having programmed in R since I was

Read more »

Sweave Syntax Highlighting in vim

November 27, 2006
By
Sweave Syntax Highlighting in vim

If you use Sweave and vim, you might have wondered if it’s possible to have it syntax highlight Rnw/Snw files properly : the latex bits with LaTeX syntax and the noweb R chunks with R syntax. It is! Take a look a the screenshot below: In order to have this working, you only need to

Read more »

R Screenshot and Fan Photo

January 1, 2006
By
R Screenshot and Fan Photo

Screenshot of an R session running on Gentoo Linux 1.4 My asking an autograph to Bill Venables, for my MASS, at the 9th. Brazilian School of Regression Models (Feb/2005).

Read more »

R-Project: Translation Status

September 27, 2005
By
R-Project: Translation Status

Introduction This page was originally set up to shows statistics of the current status of the translation of messages for the R-project. The statistics can be generated with a Perl script that wrote for this: rt_status.pl I had put this info here in order to help the Translation Teams coordinate efforts and do quality check,

Read more »

Creating shaded areas in R

May 12, 2005
By
Creating shaded areas in R

Sometimes we want to shade areas under a density on a graphic, for instance to illustrate a p-value or a region under the normal curve. Using the polygon() function from base R we can make graphics like the following one: How to do it First we have to plot the graphic of the function whose

Read more »