calcWprimeBy function

Compute optimally weighted adaptive landscapes by subgroup