Estimate epidemic parameters in a stochastic SIR model via Gibbs sampling.