compute_propensity_scores function

Compute inverse propensity scores