Use the sum of weights of only those cases which are valid to