A package to estimate posterior probabilities and perform model