Skip to content

Commit

Permalink
rename get_ic to infocrit
Browse files Browse the repository at this point in the history
  • Loading branch information
kshedden committed Nov 26, 2020
1 parent e7771b0 commit f835d24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion statsmodels/genmod/generalized_linear_model.py
Expand Up @@ -1776,7 +1776,7 @@ def bic_llf(self):
self.df_model+self.df_resid+1
)

def get_ic(self, ic_type, scale=None):
def infocrit(self, ic_type, scale=None):
"""Return an information criterion for the model.
Parameters
Expand Down
2 changes: 1 addition & 1 deletion statsmodels/genmod/tests/test_glm.py
Expand Up @@ -2418,7 +2418,7 @@ def test_qaic():
m = GLM(y, x, family=sm.families.Binomial())
r = m.fit()
scale = 2.412699
qaic = r.get_ic(ic_type="qaic", scale=scale)
qaic = r.infocrit(ic_type="qaic", scale=scale)

# R gives 31.13266 because it uses a df that is 1 greater,
# presumably because they count the scale parameter in df.
Expand Down

0 comments on commit f835d24

Please sign in to comment.