-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make coeftable
objects conform to Tables API
#527
Comments
Sure. The main problem is whether it's OK to add a dependency on Tables.jl. If we moved all modeling features to StatsModels, that wouldn't be a problem anymore.
|
Oh I thought that modeling packages were required to include the function I support adding a dependency on Tables.jl. This seems to me to be exactly the kind of scenario it was created for. |
Thinking about this more there might be more (breaking) quality of life improvements that would be nice. Being able to index |
Yes it's too bad that these return plain vectors without names. Unfortunately, I'm not sure we can depend on NamedArrays or AxisArrays. Probably something to reconsider when we move these features to StatsModels. |
I don't think we would need to add Tables.jl as a dependency. We can just have the basic row-base Table-like and people can just call the Tables.API for it. That might also help to make it easier to format (e.g., to TeX). Related Nosferican/Econometrics.jl#21. As for |
I guess we could make
Yes, passing arguments would work. StatsModels could provide the necessary helpers so that it works for any model, by extracting the corresponding values from the vector returned by |
I believe |
Yes but that doesn't have pretty printing. |
We could try using |
Yes that's what I said. |
Correct; to hook into |
Fixed by #629. |
If all
coeftable
objects returned by statistical packages are, indeed, tables. Then it seems reasonable to mandate that they conform to the Tables.jl API. This would allow seamless inter-op with good printing methods like PrettyTables.jl and some latex printing packages that work with DataFrames.Of course, this would require going to lots of different packages and adding PRs for them to conform to this new guideline.
The text was updated successfully, but these errors were encountered: