Python 多远回归模型

2024-10-13 02:42:37

1、导入相关的包和模块numpy pandas stats 等

Python 多远回归模型

3、放入一个模型 对变量不做更多的筛选model=sm.OLS(np.log(A.rgdpe),s葡矩酉缸m.add_constant(帆歌达缒A.iloc[:,-6:])).fit()print(model.summary())

Python 多远回归模型

5、我们脍羚蒲锅剔除pl-k和pl_c做回归模型model=sm.OLS(np.log(A.rgdpe),sm.add忧溲枷茫_constant(A.iloc[:,-5:-1])).fit()print(model.summary())

Python 多远回归模型
猜你喜欢