R package for calculating common cause probabilities