Package: broom.helpers 1.17.0.9000

broom.helpers: Helpers for Model Coefficients Tibbles

Provides suite of functions to work with regression model 'broom::tidy()' tibbles. The suite includes functions to group regression model terms by variable, insert reference and header rows for categorical variables, add variable labels, and more.

Authors:Joseph Larmarange [aut, cre], Daniel D. Sjoberg [aut]

broom.helpers_1.17.0.9000.tar.gz
broom.helpers_1.17.0.9000.zip(r-4.5)broom.helpers_1.17.0.9000.zip(r-4.4)broom.helpers_1.17.0.9000.zip(r-4.3)
broom.helpers_1.17.0.9000.tgz(r-4.4-any)broom.helpers_1.17.0.9000.tgz(r-4.3-any)
broom.helpers_1.17.0.9000.tar.gz(r-4.5-noble)broom.helpers_1.17.0.9000.tar.gz(r-4.4-noble)
broom.helpers_1.17.0.9000.tgz(r-4.4-emscripten)broom.helpers_1.17.0.9000.tgz(r-4.3-emscripten)
broom.helpers.pdf |broom.helpers.html
broom.helpers/json (API)
NEWS

# Install 'broom.helpers' in R:
install.packages('broom.helpers', repos = c('https://larmarange.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/larmarange/broom.helpers/issues

Pkgdown:https://larmarange.github.io

Datasets:

On CRAN:

11.13 score 22 stars 3 packages 147 scripts 17k downloads 39 mentions 87 exports 37 dependencies

Last updated 3 months agofrom:69982268be. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 03 2024
R-4.5-winOKDec 03 2024
R-4.5-linuxOKDec 03 2024
R-4.4-winOKDec 03 2024
R-4.4-macOKDec 03 2024
R-4.3-winOKDec 03 2024
R-4.3-macOKDec 03 2024

Exports:.assert_package.clean_backticks.escape_regex.formula_list_to_named_list.generic_selector.get_all_packages_dependencies.get_min_version_required.get_package_dependencies.is_selector_scoped.select_to_varnamesall_categoricalall_continuousall_contrastsall_dichotomousall_interactionall_interceptsall_ofall_ran_parsall_ran_valsany_ofcontainsends_witheverythinglast_colmatchesmodel_compute_terms_contributionsmodel_get_assignmodel_get_coefficients_typemodel_get_contrastsmodel_get_modelmodel_get_model_framemodel_get_model_matrixmodel_get_nmodel_get_nlevelsmodel_get_offsetmodel_get_pairwise_contrastsmodel_get_responsemodel_get_response_variablemodel_get_termsmodel_get_weightsmodel_get_xlevelsmodel_identify_variablesmodel_list_contrastsmodel_list_higher_order_variablesmodel_list_terms_levelsmodel_list_variablesnum_rangeone_ofplot_marginal_predictionsscope_tidyseq_rangestarts_withtidy_add_coefficients_typetidy_add_contraststidy_add_estimate_to_reference_rowstidy_add_header_rowstidy_add_ntidy_add_pairwise_contraststidy_add_reference_rowstidy_add_term_labelstidy_add_variable_labelstidy_all_effectstidy_and_attachtidy_attach_modeltidy_avg_comparisonstidy_avg_slopestidy_broomtidy_detach_modeltidy_disambiguate_termstidy_get_modeltidy_ggpredicttidy_identify_variablestidy_marginal_contraststidy_marginal_meanstidy_marginal_predictionstidy_marginstidy_multgeetidy_parameterstidy_plus_plustidy_remove_intercepttidy_select_variablestidy_with_broom_or_parameterstidy_zeroinflvariables_to_contrastvariables_to_predictvarswhere

Dependencies:backportsbitbit64broomcardsclicliprcpp11crayondplyrfansiforcatsgenericsgluehavenhmslabelledlifecyclemagrittrpillarpkgconfigprettyunitsprogresspurrrR6readrrlangstringistringrtibbletidyrtidyselecttzdbutf8vctrsvroomwithr

Getting Started with broom.helpers

Rendered fromtidy.Rmdusingknitr::rmarkdownon Dec 03 2024.

Last update: 2024-07-29
Started: 2020-08-28

Readme and manuals

Help Manual

Help pageTopics
Remove backticks around variable names.clean_backticks
Escapes any characters that would have special meaning in a regular expression.escape_regex
Check a package installation status or minimum required version.assert_package .get_all_packages_dependencies .get_min_version_required .get_package_dependencies assert_package
Compute a matrix of terms contributionsmodel_compute_terms_contributions model_compute_terms_contributions.default
Get the assign attribute of model matrix of a modelmodel_get_assign model_get_assign.default model_get_assign.model_fit model_get_assign.vglm
Get coefficient typemodel_get_coefficients_type model_get_coefficients_type.biglm model_get_coefficients_type.cch model_get_coefficients_type.clm model_get_coefficients_type.clmm model_get_coefficients_type.clogit model_get_coefficients_type.coxph model_get_coefficients_type.crr model_get_coefficients_type.default model_get_coefficients_type.fixest model_get_coefficients_type.geeglm model_get_coefficients_type.glm model_get_coefficients_type.glmerMod model_get_coefficients_type.LORgee model_get_coefficients_type.model_fit model_get_coefficients_type.multinom model_get_coefficients_type.negbin model_get_coefficients_type.polr model_get_coefficients_type.svyolr model_get_coefficients_type.tidycrr
Get contrasts used in the modelmodel_get_contrasts model_get_contrasts.betareg model_get_contrasts.hurdle model_get_contrasts.model_fit model_get_contrasts.zeroinfl
Get the model from model objectsmodel_get_model model_get_model.default model_get_model.mira
Get the model frame of a modelmodel_get_model_frame model_get_model_frame.biglm model_get_model_frame.coxph model_get_model_frame.default model_get_model_frame.fixest model_get_model_frame.model_fit model_get_model_frame.survreg model_get_model_frame.svycoxph
Get the model matrix of a modelmodel_get_model_matrix model_get_model_matrix.betareg model_get_model_matrix.biglm model_get_model_matrix.brmsfit model_get_model_matrix.cch model_get_model_matrix.clm model_get_model_matrix.default model_get_model_matrix.fixest model_get_model_matrix.glmmTMB model_get_model_matrix.LORgee model_get_model_matrix.model_fit model_get_model_matrix.multinom model_get_model_matrix.plm model_get_terms.cch
Get the number of observationsmodel_get_n model_get_n.coxph model_get_n.default model_get_n.glm model_get_n.glmerMod model_get_n.LORgee model_get_n.model_fit model_get_n.multinom model_get_n.survreg model_get_n.tidycrr
Get the number of levels for each factor used in 'xlevels'model_get_nlevels model_get_nlevels.default
Get model offsetmodel_get_offset model_get_offset.default
Get pairwise comparison of the levels of a categorical variablemodel_get_pairwise_contrasts
Get model responsemodel_get_response model_get_response.default model_get_response.glm model_get_response.glmerMod model_get_response.model_fit
Get the name of the response variablemodel_get_response_variable model_get_response_variable.default
Get the terms of a modelmodel_get_terms model_get_terms.betareg model_get_terms.brmsfit model_get_terms.default model_get_terms.glmmTMB model_get_terms.model_fit
Get sampling weights used by a modelmodel_get_weights model_get_weights.default model_get_weights.model_fit model_get_weights.svrepglm model_get_weights.svyglm
Get xlevels used in the modelmodel_get_xlevels model_get_xlevels.brmsfit model_get_xlevels.default model_get_xlevels.felm model_get_xlevels.glmerMod model_get_xlevels.glmmTMB model_get_xlevels.lmerMod model_get_xlevels.model_fit model_get_xlevels.plm
Identify for each coefficient of a model the corresponding variablemodel_identify_variables model_identify_variables.aov model_identify_variables.clm model_identify_variables.clmm model_identify_variables.default model_identify_variables.gam model_identify_variables.lavaan model_identify_variables.logitr model_identify_variables.model_fit
List contrasts used by a modelmodel_list_contrasts model_list_contrasts.default
List higher order variables of a modelmodel_list_higher_order_variables model_list_higher_order_variables.default
List levels of categorical termsmodel_list_terms_levels model_list_terms_levels.default
List all the variables used in a modelmodel_list_variables model_list_variables.default model_list_variables.lavaan model_list_variables.logitr
Scoping a tidy tibble allowing to tidy selectscope_tidy
Select helper functionsall_categorical all_continuous all_contrasts all_dichotomous all_interaction all_intercepts all_ran_pars all_ran_vals select_helpers
Sequence generation between min and maxseq_range
Listing of Supported Modelssupported_models
Add coefficients type and label as attributestidy_add_coefficients_type
Add contrasts type for categorical variablestidy_add_contrasts
Add an estimate value to references rows for categorical variablestidy_add_estimate_to_reference_rows
Add header rows variables with several termstidy_add_header_rows
Add the (weighted) number of observationstidy_add_n
Add pairwise contrasts for categorical variablestidy_add_pairwise_contrasts
Add references rows for categorical variablestidy_add_reference_rows
Add term labelstidy_add_term_labels
Add variable labelstidy_add_variable_labels
Marginal Predictions at the mean with 'effects::allEffects()'tidy_all_effects
Attach a full model to the tibble of model termstidy_and_attach tidy_attach_model tidy_detach_model tidy_get_model
Marginal Contrasts with 'marginaleffects::avg_comparisons()'tidy_avg_comparisons
Marginal Slopes / Effects with 'marginaleffects::avg_slopes()'tidy_avg_slopes
Tidy with 'broom::tidy()' and checks that all arguments are usedtidy_broom
Disambiguate termstidy_disambiguate_terms
Marginal Predictions with 'ggeffects::ggpredict()'tidy_ggpredict
Identify the variable corresponding to each model coefficienttidy_identify_variables
Marginal Contrasts with 'marginaleffects::avg_comparisons()'tidy_marginal_contrasts variables_to_contrast
Marginal Means with 'marginaleffects::marginal_means()'tidy_marginal_means
Marginal Predictions with 'marginaleffects::avg_predictions()'plot_marginal_predictions tidy_marginal_predictions variables_to_predict
Average Marginal Effects with 'margins::margins()'tidy_margins
Tidy a 'multgee' modeltidy_multgee
Tidy a model with parameters packagetidy_parameters
Tidy a model and compute additional informationstidy_plus_plus
Remove intercept(s)tidy_remove_intercept
Select variables to keep/droptidy_select_variables
Tidy a model with broom or parameterstidy_with_broom_or_parameters
Tidy a 'zeroinfl' or a 'hurdle' modeltidy_zeroinfl