Nosferican / Econometrics.jl

Econometrics in Julia
https://nosferican.github.io/Econometrics.jl/dev
ISC License
69 stars 19 forks source link

Regression Tables for LaTeX #21

Open Nosferican opened 5 years ago

Nosferican commented 5 years ago

Is your feature request related to a problem? Please describe. Something akin RegressionTables.jl

Describe the solution you'd like Probably something like export(mod1, mod2, output = :tex)

Describe alternatives you've considered I would add it to RegressionTables.jl, but needs an API to make it worthwhile.

caseykneale commented 5 years ago

Does this help give you a boilerplate to work from?

https://github.com/caseykneale/ChemometricsTools.jl/blob/abb3c1c6817befa02dc2ada40fc678da25f2ee36/src/ClassificationMetrics.jl#L191

or

https://github.com/caseykneale/ChemometricsTools.jl/blob/abb3c1c6817befa02dc2ada40fc678da25f2ee36/src/ClassificationMetrics.jl#L220

Kind of hacky but it makes decent first pass LaTeX tables for classification metrics.

nalimilan commented 5 years ago

RegressionTables.jl already supports LaTeX output AFAICT. What is missing?

Nosferican commented 5 years ago

The methods rely on package specific internals rather than using the Statistical/Regression model API (same as CovarianceMatrices.jl). Ideally the change would happen in RegressionTables.jl and we can just use that. For the estimator names, I would like to use the Base.summary if it makes sense or maybe just implement something for that particular field.

nalimilan commented 5 years ago

The methods rely on package specific internals rather than using the Statistical/Regression model API (same as CovarianceMatrices.jl). Ideally the change would happen in RegressionTables.jl and we can just use that.

Right, probably worth filing issues there.

For the estimator names, I would like to use the Base.summary if it makes sense or maybe just implement something for that particular field.

Base.summary is an internal function used to print "a brief description of a value", so using it for something else wouldn't be great.

Nosferican commented 5 years ago

Related, https://github.com/jmboehm/RegressionTables.jl/issues/31. Maybe part of the abstraction? Something like string(StatsBase.estimator(model))?

nalimilan commented 5 years ago

What kind of information would you like to print?