出力のp>|t|(有意水準)の値のみを抜き出したい場合は、どのようにすればよいのでしょうか
教えて頂けると幸いです。
python
1import statsmodels.api as sm 2 3model = sm.OLS(df_y, sm.add_constant(df)) 4result = model.fit() 5 6# 重回帰分析の結果を表示する 7result.summary()
Dep. Variable: keiyaku_pr R-squared: 0.847 Model: OLS Adj. R-squared: 0.819 Method: Least Squares F-statistic: 29.85 Date: Thu, 11 Jul 2019 Prob (F-statistic): 0.00 Time: 03:11:42 Log-Likelihood: -1.0480e+05 No. Observations: 6461 AIC: 2.116e+05 Df Residuals: 5448 BIC: 2.185e+05 Df Model: 1012 Covariance Type: nonrobust coef std err t P>|t| [0.025 0.975] const 2.782e+07 3.63e+04 766.651 0.000 2.78e+07 2.79e+07 pj_no 4.568e+04 5e+04 0.914 0.361 -5.23e+04 1.44e+05
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2019/07/11 04:55
2019/07/11 04:57
退会済みユーザー
2019/07/11 05:00
2019/07/11 05:12