jacobadenbaum / textables.jl Goto Github PK
View Code? Open in Web Editor NEWPublication quality regression and statistical tables
License: Other
Publication quality regression and statistical tables
License: Other
Some regression coefficients cannot have a standard error in the usual sense but should come with intervals instead. Is it possible to construct those in place of SEs with TexTables?
If I have a single TableCol (say t), and use the command to_tex(t)
it throws up an error ERROR: MethodError: no method matching to_tex(::TableCol{1, 1})
. The command works when I use to_tex(hcat(t,t))
. It looks like creating a table needs at least two columns. I am not sure if that is desirable as some situations call for creating a single column table.
This is a little tricky since each row needs an index. This can be solved by indexing by row number, but I think a lot of people who want this feature will not be happy with the row number showing up. So, this feature will need to come in two parts:
Neither of these is particularly hard. Just needs doing.
I get this error when I try to install with ] add TexTables
ERROR: Unsatisfiable requirements detected for package StatsModels [3eaba693]:
StatsModels [3eaba693] log:
├─possible versions are: [0.3.0-0.3.1, 0.4.0, 0.5.0, 0.6.0-0.6.10] or uninstalled
├─restricted by compatibility requirements with Bootstrap [e28b5b4c] to versions: 0.6.0-0.6.10
│ └─Bootstrap [e28b5b4c] log:
│ ├─possible versions are: [2.0.0-2.0.1, 2.1.0, 2.2.0] or uninstalled
│ └─restricted to versions 2.2.0 by an explicit requirement, leaving only versions 2.2.0
└─restricted by compatibility requirements with TexTables [ebf5ac4f] to versions: 0.5.0 — no versions left
└─TexTables [ebf5ac4f] log:
├─possible versions are: 0.1.0 or uninstalled
└─restricted to versions * by an explicit requirement, leaving only versions 0.1.0
However, it works fine when I instead use ] add TexTables#master
. Perhaps you haven't re-published the package recently?
@jacobadenbaum are you planning to maintain this package, or should we try and find someone else to take care of it?
Currently, we're relying on something that got deprecated and has been removed in 0.22. Need to track this down and fix it before tagging a new release.
The current latex tables for export look terrible because of the inclusion of a toprule. While there are some tables for which this is appropriate, it should not be the default option.
It seems like the output mixes \toprule
and \bottomrule
(booktab commands) with \hline
(standard tabular command):
using TexTables
using RDatasets
neuro = RDatasets.dataset("boot", "neuro")
summarize(neuro) |> to_tex |> print
\begin{tabular}{r|ccccc}
\toprule
& Obs & Mean & Std. Dev. & Min & Max \\ \hline
V1 & 40 & -232.720 & 12.862 & -249.900 & -196.900 \\
V2 & 418 & -186.567 & 37.206 & -249.000 & -98.600 \\
V3 & 469 & -66.160 & 39.719 & -235.800 & -0.100 \\
V4 & 468 & 48.074 & 30.760 & 1.000 & 197.800 \\
V5 & 445 & 162.483 & 38.111 & 75.600 & 249.300 \\
V6 & 90 & 229.740 & 18.718 & 154.300 & 249.700 \\
\bottomrule
\end{tabular}
Please consider changing \hline
to \midrule
(or \toprule
and \bottomrule
to \hline
).
Would it be possible to include a capability to choose the order of rows in regression tables (or at least move certain variables to the top)? For example, if a variable is included in the third regression but not the first two, it is included at the bottom of the table. Would it be possible to include an option to move it to the top?
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix
on this issue.
I'll open a PR within a few hours, please be patient!
It would be nice to have an option like the following:
to_tex(table, border=:double)
Where the top and bottom borders of the table (which are printed as \toprule
and \bottomrule
by default) would be replaced with \hline \hline
.
This shouldn't take much effort to do. Just need to add an extra option to TableParams
with an appropriate default, and change the head
and foot
methods accordingly.
The current compatibility entry restricts the version of Compat to be v3. This has prevented the use of latest versions of DataFrames.jl. Please consider update the compatibility entry in Project.toml
.
When I ran the runtests.jl file, I got a message that two of the tests here were broken (not that they failed)
I notice that the two lines above the broken are commented out. Should lines 123 and 124 be commented out as well?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.