How can I null a capture in multidimensional regression using python?

Is it possible in python / scipy / numpy to nullify multidimensional regression interception? I could not find it in the OLS recipe ( http://www.scipy.org/Cookbook/OLS ).

I would prefer not to use RPython, but is this the only way?

+3
source share
1 answer

http://statsmodels.sourceforge.net/stable/generated/statsmodels.regression.linear_model.OLS.html

statsmodels requires you to create your own design matrix called exog, which does not automatically add constant / interception. Thus, using statsmodels, you can just leave the constant and run the regression.

, , , , r_squared, .

+1

All Articles