Estimate SIR parameters via Gibbs sampling.