depictr.tidy_estimates#

depictr.tidy_estimates(model, conf_level=0.95)#

Coerce a fitted model or an estimate table into one tidy frame.

Parameters:
  • model (statsmodels results object or pandas.DataFrame) – A fitted model exposing params and conf_int (for example a statsmodels OLS/GLM result), or a data frame already carrying the estimates.

  • conf_level (float) – Confidence level for the interval when reading it from a model.

Returns:

Columns term, estimate, conf_low, conf_high.

Return type:

pandas.DataFrame