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
ivreg #927
ivreg #927
Conversation
- Replace "instruments" arg in tidy.ivreg with new "component" arg. - Include weak instruments F-test with augment.ivreg(..., diagnostics = TRUE)
- Also fix some typos
Merge branch 'master' into ivreg # Conflicts: # R/aer-tidiers.R # man/augment.ivreg.Rd # man/glance.ivreg.Rd
Thanks for making this happen! Feeling really positive about how these came together. We're starting to think about reverse dependency checks and such for 0.7.1, so I'll hold off on merging until |
- Mostly to trigger new build.
This looks really great; thanks for all the efforts! FWIW, one of the Also, since Again, thanks for this. I look forward to using it! |
This pull request has been automatically closed due to inactivity. |
This pull request has been automatically locked. If you believe the issue addressed here persists, please file a new PR (with a reprex: https://reprex.tidyverse.org) and link to this one. |
Fixes #922
Highlights:
AER::ivreg
classes should inherit from the newivreg::ivreg
ones anyway. But splitting things up also allowed/prompted me to add a tidy method for AER::tobit, which now works instead of just producing an error.ivreg.augment
. Following Change names of interval columns in augment() for clarity #925 (currently pending) I've gone with ".lower" and ".upper" for the column names, but we'll just wait to see how that shakes out. This will obviously trigger an error on the CI build until the modeltests glossary is updated....
. Personally, I think this is pretty cool, because (a) it allows users to adjust standard errors, etc. on the fly and (b) it makes it consistent with a major goal of the new ivreg package (i.e. integrated supported for libraries like lmtest and sandwhich).Some examples adapted from the help docs:
Created on 2020-09-07 by the reprex package (v0.3.0)
Lastly, note that some of these tidiers rely on v. 0.5.1 of the parent ivreg package. As of the time of writing, this hasn't hit CRAN yet, though I expect it will fairly soon. I didn't want to add a "remotes" call to the dev version in the Description files, but let me know. I'm fine to have this PR sitting around for a bit if the upstream CRAN release is paramount. (Although, note that the existing ivreg tidiers will break in the meantime as documented here.)