Naming of "fittedvalues" inconsistent
Bug #504782 reported by
Adrian Schlatter
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
statsmodels |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The fit() objects returned by OLS(...).fit() and RLM(...).fit() differ in naming for fitted values.
OLS uses ".fittedvalues" while RLM uses ".fitted_values" (note the underscore).
I expect the naming to be the same in both objects.
Code to reproduce the bug:
import numpy as np
import scikits.statsmodels as sm
nsample=100
x = np.linspace(0,10, nsample)
X = sm.tools.
beta = np.array([1, 0.1])
y = np.dot(X, beta) + np.random.
resOLS = sm.OLS(y, X).fit()
resRLM = sm.RLM(y, X).fit()
dir(resOLS)[39]
dir(resRLM)[28]
Changed in statsmodels: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks for reporting. This should be fixed already in the trunk and will be included in the next release.