Semiparametric Regression in Likelihood-Based Models