Can we have a unified LaTex output interface for StatsKit?

It would be great if we could have a unified LaTex output interface for the packages in StatsKit, so we can conveniently convert tabular data, statistical test results, and regression results into LaTex.

DataFrames depends on PrettyTables, so this should be an easy thing to add.

However that wouldn’t necessarily help the printing of regression tables. I wonder if we need a new package that does regression tables but uses PrettyTables as a backend, and allows for more compliance with anything StatsModels-related.

1 Like

I thought PrettyTables already has a (simple) LaTeX backend, what’s missing is to use LaTeXString as headers/titles?

1 Like

It also doesn’t currently allow multi-column headers, which is probably necessary for it to be the backend of a real regression table package.

@Ronis_BR is doing a great job though. And I think its important to emphasize that they have maintained feature parity across HTML, text, and LaTex outputs, so new features for latex are tough to add.


Don’t forget about RegressionTables.jl


Yes, features like this (multi-columns) that is not specific for a backend, I think it is better to implement to the 3 backends at the same time. However, if there is demand, I won’t oppose to do something only for LaTeX, for example.

Merge columns is extremely easy for LaTeX (we just need to think about a good API). For text backend, it will be extremely difficult, probably requiring to rewrite part of the cropping mechanism.