linearmodels.compat.statsmodels.Summary¶
- class linearmodels.compat.statsmodels.Summary[source]¶
Summary of the estimation results of a model.
The summary contains tables of results and notes below the tables. It is returned by the
summaryproperty of the results. It can be converted to text, HTML, LaTeX and CSV usingas_text,as_html,as_latexandas_csv.- extra_txt¶
The notes that are written below the tables in every format, with one line of the notes on each line of the string. Set it to None to remove the notes from
as_text,as_html,as_latexandas_csv, or to a string to replace them.add_extra_txtreplaces the notes with the lines of text that it is given.
Notes
The
summaryproperty of the results creates a new summary each time that it is used. Keep the summary in a variable before changingextra_txt.Examples
Export the tables without the notes
>>> smry = res.summary >>> smry.extra_txt = None >>> latex = smry.as_latex()Methods
add_extra_txt(etext)Add additional text that will be added at the end in text format
add_table_2cols(res[, title, gleft, gright, ...])Add a double table, 2 tables with one column merged horizontally
add_table_params(res[, yname, xname, alpha, ...])Create and add a table for the parameter estimates
as_csv()Return tables as string
as_html()Return the tables as a string in HTML format.
as_latex()Return the tables as a string in LaTeX format.
as_text()Return tables as string