Reputation: 1622
I have trained a Linear Regression as follows:
import statsmodels.api as sm
model = sm.OLS(Y_Train,X_Train)
result = model.fit()
result.summary()
The results look like this:
I need to calculate the Z-Score for each feature: Coefficient / Std Error.
To do so, I need to iterate through this table:
Does anybody know how to do it in pandas, please?
Upvotes: 0
Views: 22