The basic SIR model in R

No Comments

The SIR model is an extremely simple model of an infectious disease in a population that breaks the population into three groups: susceptibles, infecteds, and recovereds. I was having issues getting matplotlib running, so I ported the code in Modeling Infectious Diseases in Humans and Animals from Python to R.

Python DB-API to numpy

3 Comments

Recently, I was looking for “best practices” for getting data from MySQL to a numpy array. Thanks to Tim Hochberg on the numpy mailing list, we get the following as the apparently fastest way to bridge the DB-numpy gap:

Compiling JAGS on Mac OS X

No Comments

JAGS is essentially a cross-platform, command-line WinBUGS replacement. What does that mean? You can do Bayesian analysis natively on Linux and Mac OS X.

XAMPP with Xdebug on Snow Leopard

No Comments

If you compiled the xdebug module and see the following in your log file:

How to globally ignore .DS_Store when using Git

1 Comment

If you don’t want OS X mucking up your Git repo with DS_Store files, you can set up a global ignore file. As per freshsauce, you simply execute the following two commands: