ergmx.table#

ergmx.table(*fits, names=None, digits=2, stars=(0.001, 0.01, 0.05), include_aic=True, include_bic=True, include_loglik=True, rename=None, omit=None)[source]#

A table of fitted models side by side, as R’s texreg.

print() it for R’s screenreg() layout, or convert it with .to_latex(), .to_html() (as notebooks show it) or .to_markdown().

Parameters:
  • *fits (ErgmFit) – The models, as arguments or one list.

  • names (list of str, optional) – The models’ column names (“Model 1”, “Model 2”… by default).

  • digits (int) – Decimals of the numbers.

  • stars (tuple of float) – p-value thresholds of ***, **, * (and .).

  • include_aic (bool) – Rows of fit statistics (for models that have them).

  • include_bic (bool) – Rows of fit statistics (for models that have them).

  • include_loglik (bool) – Rows of fit statistics (for models that have them).

  • rename (dict, optional) – New names for coefficients, {"nodematch.Grade": "Same grade"}; coefficients renamed to the same name share a row.

  • omit (str, optional) – A regular expression: coefficients whose names match are left out.