Tables¶
- penalized_stream.etable(models, *, which=None, type='gt', keep=None, drop=None, labels=None, felabels=None, show_fe=True, show_intercept=True, digits=3, model_heads=None, notes='', file_name=None)[source]¶
A table of penalized fits: their selected coefficients side by side, with the fixed effects and each fit’s penalty, how it was chosen, the number selected, the cross-validated error and N.
- Parameters:
models (PenalizedResult or list of them) – One column each.
which (str or list, optional) – Where on each fit’s path: by default its chosen penalty;
"lambda_min","lambda_1se", a criterion or a path index; a list makes one column per fit and entry (["lambda_min", "lambda_1se"]puts the two side by side).type ({"gt", "df", "md", "html", "tex"}, default "gt") – A Great Tables table, a Polars DataFrame (columns
section,term,(1), …), Markdown, HTML or LaTeX text.keep (str or list of str, optional) – Regular expressions: keep only the coefficients that match one of
keep, then drop those that match one ofdrop(as pyfixest’s).drop (str or list of str, optional) – Regular expressions: keep only the coefficients that match one of
keep, then drop those that match one ofdrop(as pyfixest’s).labels (dict, optional) – New names for coefficients and fixed effects.
felabels (dict, optional) – New names for coefficients and fixed effects.
show_fe (bool, default True) – Rows marking which fixed effects each fit partials out.
show_intercept (bool, default True) – The intercept’s row (fits without fixed effects).
digits (int, default 3) – Decimals of the coefficients.
model_heads (list of str, optional) – Column headings; default the outcome of each fit.
notes (str, optional) – Added to the table’s notes.
file_name (str or Path, optional) – Also write the table there (HTML, Markdown or LaTeX by
type; withtype="gt", HTML).
- Returns:
great_tables.GT, polars.DataFrame or str