Compute the effective reproduction number for an epidemic based on positive test ratio or absolute number of cases.