Two proposals for estimation_table
- estimagic version used, if any:
mainbranch - Python version, if any: 3.9.10
- Operating System: Windows
What would you like to enhance and why? Is it related to an issue/problem?
Transitioning to the new estimagic tables worked out very well, thanks! But two issues appeared:
- I didn't find an easy way to add a row of strings (e.g. "Controls": ["Yes", "No"]) to the footer before calling
render_latex. I think it would be a good feature if the function would allow for these simple strings and wrap them asf"\\multicolumn{{1}}{{c}}{{{sr[i]}}}"automatically. Alternatively, I could add the multicolumn environments as the user myself. But this didn't work because an additional bracket was added by the function. I started to implement the former solution on the branchimprove_estimation_tableand can make it nicer in case you aggree with the general idea. - The row showing observations is now also rounded (in my case to two significant digits), but I would like to not have it rounded -- preferably not only if it is called "observations" (maybe even for all integer rows). This feature was implemented in a previous version of estimagic, but seems to be missing now. What are your thoughts about it?
Hi Christian,
Thanks a lot!
- Yes, adding string rows should me made easy for users. If you have a good implementation we would be happy to receive a PR.
- I thought it was implemented that ints are displayed correctly. I don't think we should round them at all by default. People will get confused if our number of observations is not exactly the dataset size. @mpetrosian can you check? @ChristianZimpelmann do you have a minimal example where it goes wrong?
I thought it was implemented that ints are displayed correctly. I don't think we should round them at all by default. People will get confused if our number of observations is not exactly the dataset size.
I might be completely off here, but I the impression that I got was that the logic is very much column-based (too much IMHO for estimation tables which tend to be a weird collection of all kinds of numbers having little to do with each other apart from being based on the same regression or whatever). That is, if I have three rows, the first two are regression coefficients of very different magnitudes and the last is an integer with the number of observations, this does not quite work.
Hi. so, we implement unfomratting of integers which removes the trailing zero. This means that the number can get affected by rounding. in principle, this checking for integer numbers can be done at an earlier step such that the numbers don't get formatted.
re the first point: You can start a PR and i can pick up on it later.
In the next couple of weeks, I won't be able to work on estimation_table, thought. Hope this is fine with everyone!.