Skip to content

Commit

Permalink
REF: GEEResults rename to postfix names, keep old as alias for now
Browse files Browse the repository at this point in the history
  • Loading branch information
josef-pkt committed Aug 22, 2014
1 parent 8a3cd39 commit a59a0b7
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions statsmodels/genmod/generalized_estimating_equations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ def resid(self):
return self.model.endog - self.fittedvalues

@cache_readonly
def split_resid(self):
def resid_split(self):
"""
Returns the residuals, the endogeneous data minus the fitted
values from the model. The residuals are returned as a list
Expand All @@ -1170,7 +1170,7 @@ def split_resid(self):
return sresid

@cache_readonly
def centered_resid(self):
def resid_centered(self):
"""
Returns the residuals centered within each group.
"""
Expand All @@ -1181,7 +1181,7 @@ def centered_resid(self):
return cresid

@cache_readonly
def split_centered_resid(self):
def resid_centered_split(self):
"""
Returns the residuals centered within each group. The
residuals are returned as a list of arrays containing the
Expand All @@ -1193,6 +1193,13 @@ def split_centered_resid(self):
sresid.append(self.centered_resid[ii])
return sresid


# FIXME: alias to be removed, temporary backwards compatibility
split_resid = resid_split
centered_resid = resid_centered
split_centered_resid = resid_centered_split


@cache_readonly
def fittedvalues(self):
"""
Expand Down Expand Up @@ -1407,7 +1414,7 @@ def plot_isotropic_dependence(self, ax=None, xpoints=10,

return fig

def params_sensitivity(self, dep_params_first,
def sensitivity_params(self, dep_params_first,
dep_params_last, num_steps):
"""
Refits the GEE model using a sequence of values for the
Expand Down Expand Up @@ -1457,6 +1464,10 @@ def params_sensitivity(self, dep_params_first,

return results

# FIXME: alias to be removed, temporary backwards compatibility
params_sensitivity = sensitivity_params


class GEEResultsWrapper(lm.RegressionResultsWrapper):
_attrs = {
'centered_resid' : 'rows',
Expand Down

0 comments on commit a59a0b7

Please sign in to comment.