hyperposterior function

Compute the hyper-posterior distribution in Magma