get_w_from_ps function

Compute weights from propensity scores