createPosterior function

Creates a standardized posterior class