Microfoundation Inference for Strategic Prediction