-
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
Adding tidiers for regression models not currently covered by broom
#505
Comments
Interesting: we have implementations for lmRob and glmRob from the robust package (though they're basically thin wrappers for the lm tidiers), but I hadn't heard of the lowercase versions. Sounds useful! |
when you (or someone, maybe me?) does |
What about tidying the output of If interested, I'd be happy to generate a PR. |
There currently are tidiers for library(broom)
r <- function(x) (3 - x[1])^2 + 4 * (x[2] - x[1]^2)^2
res <- optim(1:2, r)
tidy(res)
#> # A tibble: 2 x 2
#> parameter value
#> <chr> <dbl>
#> 1 parameter1 3.00
#> 2 parameter2 9.00
glance(res)
#> # A tibble: 1 x 4
#> value function.count gradient.count convergence
#> <dbl> <int> <int> <int>
#> 1 0.0000000358 113 NA 0 Created on 2018-11-16 by the reprex package (v0.2.1) |
Whoops! I had broom.mixed not broom loaded. I have an idea for |
@IndrajeetPatil I'm working on |
@mattle24 Sorry for the late reply. Completely missed this in the notifications. |
All good, thanks for checking! |
(I would also love a function for tidying hurdle objects. Thanks for a great package regardless :) ) |
|
Closing following #795 (comment) |
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. |
Here are some commonly used (
class
of) regression models thatbroom
currently doesn't support but would be lovely if it does.zero-inflated regression:
zeroinfl
(https://cran.r-project.org/web/packages/pscl/vignettes/countreg.pdf)hurdle models for count data regression:
hurdle
(https://cran.r-project.org/web/packages/pscl/vignettes/countreg.pdf)robust regression from
robustbase
package:lmrob
(https://cran.r-project.org/web/packages/robustbase/robustbase.pdf)multivariate ordinal regression models:
mvord
(https://cran.r-project.org/web/packages/mvord/vignettes/vignette_mvord2.html)multinomial logit model:
mnlogit
(https://cran.r-project.org/web/packages/mnlogit/index.html)vector generalized linear models:
vglm
(https://cran.r-project.org/web/packages/VGAM/VGAM.pdf)outlier-robust fit for Generalized Additive Models:
rgam
(https://cran.r-project.org/web/packages/rgam/index.html)resistant regression:
lqs
(https://www.rdocumentation.org/packages/MASS/versions/7.3-51.4/topics/lqs)Robust Linear Regression with Compositional Data as Covariates :
complmrob
(https://cran.r-project.org/web/packages/complmrob/complmrob.pdf)(I will keep updating this list as I find new, unsupported regression models.)
Unless somebody else does it first, I will also try to do a PR with these tidiers.
The text was updated successfully, but these errors were encountered: