Naming of "fittedvalues" inconsistent

Bug #504782 reported by Adrian Schlatter
6
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.add_constant(x)
beta = np.array([1, 0.1])
y = np.dot(X, beta) + np.random.normal(size=nsample)

resOLS = sm.OLS(y, X).fit()
resRLM = sm.RLM(y, X).fit()

dir(resOLS)[39]
dir(resRLM)[28]

Revision history for this message
Skipper Seabold (jsseabold) wrote :

Thanks for reporting. This should be fixed already in the trunk and will be included in the next release.

Changed in statsmodels:
status: New → Fix Committed
Changed in statsmodels:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.