I having problem to adjust with ols class the equation y = b0 + b1x1 + b2x2
The code:
xs = numpy.loadtxt('teste.csv', skiprows=1, dtype=float, delimiter=';', usecols=(0,1)) y = log(xs[:,0]) x = 1/xs[:,1] x2 = (1/xs[:,1])**2 mymodel = ols.ols(y,x,'y',['x1', 'x2']) mymodel.summary()` I got this error:
print '''% -5s % -5.6f % -5.6f % -5.6f % -5.6f''' % tuple([self.x_varnm[i],self.b[i],self.se[i],self.t[i],self.p[i]]) IndexError: index out of bounds Someone can help me?