How to perform weighted inference

Sure, just add one more potential term in the model.