You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
influence outliers breaks when regressing on constant #552
>>> yy = np.array([436.5, 471.0, 128.4, 285.9])
>>> res_ols = sm.OLS(yy, np.ones(len(yy))).fit()
>>> infl = res_ols.get_influence()
>>> print infl.summary_table()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new\statsmodels\statsmodels\stats\outliers_influence.py", line 653, in summary_table
('dfbeta\nslope', self.dfbetas[:,1]) #skip needs to partially unravel
IndexError: invalid index
>>> oi.summary_table(res)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new\statsmodels\statsmodels\stats\outliers_influence.py", line 691, in summary_table
infl = Influence(res)
NameError: global name 'Influence' is not defined
Activity
josef-pkt commentedon Feb 4, 2013
I'm fixing the renamed Influence errors in #640 but didn't look at the constant only regression case
josef-pkt commentedon Feb 4, 2013
I'm removing the offending line with dfbeta, in #640
dfbeta depends on the number of parameters, and was used in an initial example, but it would make the table too wide if we included all dfbetas
related: I don't remember all the option that we wanted to add to influence-outlier summary. needs review
BUG: remove dfbeta from outlier summary table, closes statsmodels#552 …
BUG: remove dfbeta from outlier summary table, closes statsmodels#552 …