weights.nonprob function

Extracts the inverse probability weights