Skip to main content
Ctrl+K

statsmodels

  • Installing
  • Getting started
  • User Guide
  • Examples
    • API Reference
    • About statsmodels
    • Developer Page
    • Release Notes
  • GitHub
  • PyPI
  • DOI
  • Installing
  • Getting started
  • User Guide
  • Examples
  • API Reference
  • About statsmodels
  • Developer Page
  • Release Notes
  • GitHub
  • PyPI
  • DOI

Section Navigation

  • Working with the statsmodels Code
  • Maintainer Notes
  • Testing
  • Naming Conventions
  • Exceptions and Warnings
  • Datasets
  • Examples
  • Get Involved
  • Internal Classes
    • statsmodels.base.model.Model
      • statsmodels.base.model.Model.fit
      • statsmodels.base.model.Model.from_formula
      • statsmodels.base.model.Model.predict
      • statsmodels.base.model.Model.endog_names
      • statsmodels.base.model.Model.exog_names
    • statsmodels.base.model.LikelihoodModel
    • statsmodels.base.model.GenericLikelihoodModel
    • statsmodels.base.model.Results
    • statsmodels.base.model.LikelihoodModelResults
    • statsmodels.base.model.ResultMixin
    • statsmodels.base.model.GenericLikelihoodModelResults
    • statsmodels.stats.contrast.ContrastResults
  • Testing on Build Machines
  • Developer Page
  • Internal Classes
  • statsmodels.base.model.Model
  • statsmodels.base.model.Model.fit

statsmodels.base.model.Model.fit#

Model.fit()[source]#

Fit a model to data

previous

statsmodels.base.model.Model

next

statsmodels.base.model.Model.from_formula

On this page
  • Model.fit
Show Source

© Copyright 2009-2025, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers.

Created using Sphinx 9.1.0.

Built with the PyData Sphinx Theme 0.20.0.