Statsmodels

import statsmodels.api as sm
import statsmodels.formula.api as smf
sm.show_versions()
data = pd.read_csv('sample.csv')
formula = 'OBJ ~ EXP1 + EXP2 + EXP3'
model = smf.glm(formula=formula, data=data, family=sm.families.Binomial()).fit()
print(model.summary())
print(model.conf_int(alpha=0.05))

Daiphys is a professional-service company for research and development of leading-edge technologies in science and engineering.
Get started accelerating your business through our deep expertise in R&D with AI, quantum computing, and space development; please get in touch with Daiphys today!

Name*


Email*


Message*




* Indicates required field

Daiphys Technologies LLC - https://www.daiphys.com/

  • Last modified: 2023/04/07 00:57
  • by Daiphys