computing

S3 UseMethod in R

Simon Jackman's Blog - July 9, 2008 - 1:18pm

So this is an interesting gotcha in R (or at least I thought so). Suppose you have an object of class foo, where the “class” here is a class in the S3 sense. So you create a print method for the foo class, by writing a function print.foo. You create an object y, that has class foo. You pass that object to the print method. Read more »

Sweave from Aquamacs

Simon Jackman's Blog - April 15, 2008 - 4:40pm

So here is something I’ve been meaning to gripe about for a while.

I’d like to have Sweave as the (default?) TeX command option when editing Rnw files. There is a little bit of material on this on the web: a suggestion that you augment the TeX-command-list with a Rnw-mode-hook. This proposed solution doesn’t seem to work for me very well: I never see the Sweave menu items in the command menu when editing a Rnw file.

So I created my own addition to the TeX-command-list: Read more »

ideal point estimation and memory usage

Simon Jackman's Blog - July 8, 2008 - 5:23am

Some recent traffic on R-SIG-Mac. Its not really a Mac problem, but worth a thought.

MCMC has the potential to violate one of the first objectives of statistics, and that is to take a big pile of numbers and make a smaller pile of numbers. Since you can try to run/save as many MCMC iterations as your computer can store (or can’t store, see below), you can easily wind up with a bigger pile of numbers than you started with. Hence, some wisdom needs to come into play. To wit: Read more »

Microsoft Sales Team Rocks

Simon Jackman's Blog - April 17, 2008 - 3:48pm

Oh. Mi. God. The full horror is on You Tube. Herr Gruber’s daringfireball alerted me to this travesty.

Picture 1-17