and remove misleading documentation from GLMResults.fittedvalues
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug: https://github.com/statsmodels/statsmodels/issues/5253
Forwarded: https://github.com/statsmodels/statsmodels/issues/5253#issuecomment-
578980169
Gbp-Pq: Name up5253_gee_offset.patch
"""
Returns the fitted values from the model.
"""
- return self.model.family.link.inverse(np.dot(self.model.exog,
- self.params))
+ return self.model.predict(self.params)
@Appender(_plot_added_variable_doc % {'extra_params_doc': ''})
def plot_added_variable(self, focus_exog, resid_type=None,
@cached_data
def fittedvalues(self):
"""
- Linear predicted values for the fitted model.
- dot(exog, params)
+ Predicted values for the fitted model.
"""
return self.mu