-
Notifications
You must be signed in to change notification settings - Fork 303
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
Add tidiers for margins and mfx objects #700
Add tidiers for margins and mfx objects #700
Comments
@alexpghayes I finally got around to writing some tidiers for these objects myself. I still have to update the docs, run coverage tests, etc. But before I do that, would you like me to separate them out into two distinct PRs (one for mfx, one for margins), or just roll them into a single PR? |
Separate PRs would be ideal! |
Alex, I'm about ready to submit this, but I just wanted to check first: Is there an easy way to add a new column name to the |
Yes! You'll need to:
In the meantime go ahead and make the PR! |
- See here: https://github.com/grantmcdermott/broom/tree/margins_tidiers - Preemptively adding these terms before filing a PR that would close tidymodels/broom#700
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
It would be great to have tidy methods for objects from the margins and mfx packages.
Among other things, this would go a long way towards improving the table support for generalized linear models like logit and probit regressions, where you often want to report actual marginal effects rather than the naive coefficient values. (I'm thinking of the fact that modern table-exporting packages like huxtable and gtsummary rely on
broom::tidy()
as a first step.) AFAIK, there is currently no fully automated way to produce, say, a LaTeX table of marginal effects from a logistic regression in R.A potential point of convenience here is that
margins
andmfx
both produce output that already closely resemble tidied regression output.Created on 2019-05-02 by the reprex package (v0.2.1)
The text was updated successfully, but these errors were encountered: