Comments (6)
Note: should we consider two additional tidyselectors: all_treatment_contrasts()
and all_sum_contrasts()
?
from broom.helpers.
A simpler solution:
tidy_add_contrasts()
all add a columnreference_term
tidy_add_term_labels()
populate a columnreference_label
- new selectors
all_treatment_coded()
andall_sum_coded()
to select categorical variables with sum or treatment contrasts - new function
tidy_rename_term_labels()
with a glue pattern based on other cols
from broom.helpers.
Bonus question: do we need a selector all_intercepts()
?
from broom.helpers.
After thinking, I'm feeling that a better approach would be to implement a glue pattern for categorical terms through model_list_terms_levels()
and tidy_add_term_lables()
Such an approach will allow to take into account the term labels when computing interaction terms labels.
from broom.helpers.
Note: should we consider two additional tidyselectors:
all_treatment_contrasts()
andall_sum_contrasts()
?
@larmarange question for you: At the moment in the PR I am working on, I made the following contrast functions: all_treatment_contrasts()
, all_sum_contrasts()
, all_poly_contrasts()
, all_helmert_contrasts()
.
Would you prefer a single function with an argument to select the type, e.g. all_contrasts(type = c("treatment", "sum", "poly", "helmert"))
? I think I prefer one contrast function, but you should decide
from broom.helpers.
one contrast function is great.
I will review the PR ASAP (not sure today, but will try tomorrow)
from broom.helpers.
Related Issues (20)
- tidy_multgee not working with mice::pool HOT 2
- Required change to stay on CRAN
- Release broom.helpers version 1.14.0
- Support for mmrm models HOT 8
- Support for MASS::contr.sdif() contrasts
- Support for zero-inflated models
- beta regression is not supported yet HOT 2
- Considering a `tidy_post_fun` argument to `tidy_plus_plus()` HOT 2
- Support with coxphf model HOT 9
- Bug fixes and improvements for mixed models HOT 1
- tbl_regression (package gtsummary) and ggcoef_model (package ggstats) not working on the output of a replicate svyglm model HOT 2
- fantastic support of multivariate quantile regression for any quantile HOT 1
- Support for survival::cch model? HOT 5
- Avg_comparisons and nlme::lme() models HOT 1
- order of variable levels with marginal tidiers HOT 8
- Release broom.helpers 1.15.0
- Take into account (id) when computing model_get_n() for coxph models
- `marginaleffects::datagridcf()` is deprecated
- Do you know the status of the {margins} pkg? HOT 1
- Explore better support of VGAM::vglm() models
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from broom.helpers.