Skip to content

Releases: larmarange/broom.helpers

broom.helpers 1.17.0

28 Aug 13:31
Compare
Choose a tag to compare

Deprecated functions and changes in selectors functions

  • selectors such as all_categorical() are now compatible with gtsummary
    version ≥ 2.0.0 (#270)
  • new function scope_tidy() to scope a tidy tibble allowing
    to tidy select (#270)
  • .select_to_varnames(), .formula_list_to_named_list(),
    .generic_selector() and .is_selector_scoped() are now deprecated and
    will be removed in a future release: you may consider
    cards::process_selectors() and cards::process_formula_selectors() as
    alternatives (#270)

Fixes

  • model_get_model_frame.coxph() has been fixed to return a correct model
    frame a subject identifier is passed to survival::coxph() (#268)

Documentation

  • Documentation has been improved, showing now clearly the type expected
    for each argument (#272)

broom.helpers 1.16.0

20 Aug 08:49
Compare
Choose a tag to compare

New features

  • new argument model_matrix_attr in tidy_and_attach() and tidy_plus_plus()
    to attach model frame and model matrix to the model as attributes for saving
    some execution time (#254)
  • tidy_add_n() now returns n_ind the number of individuals, in addition to
    the number of observations (#251)
  • by default, tidy_parameters() calls now parameters::model_parameters()
    with pretty_names = FALSE for saving execution time (#259)
  • internal code now uses the native R pipe (|>), requiring therefore R >= 4.2
    (#262)

Deprecated support

  • biglmm::bigglm() not supported anymore as biglmm has been removed from
    CRAN

Deprecated functions

  • tidy_marginal_means() is now deprecated, following deprecation of
    marginaleffects::marginal_means(). Use instead tidy_marginal_predictions()
    with the option newdata = "marginalmeans".
  • tidy_margins() is now indicated as superseded and may be deprecated if
    margins is removed from CRAN. tidy_avg_slopes() could be used as an
    alternative. (#252)

Fixes

  • tidy_multgee() has been fixed to properly identify the different y.levels
    (#260 @jackmwolf)
  • tidy_marginal_predictions() has been updated to avoid the use of the
    deprecated function marginaleffects::datagridcf() (#256)

broom.helpers 1.15.0

05 Apr 16:16
Compare
Choose a tag to compare

New supported models

  • support for mmrm::mmrm() models (#228)
  • support for survival::cch() models (#242)

New features

  • new tidy_post_fun argument in tidy_plus_plus() (#235)

Fix

  • fix the order of the levels of categorical variables in the results of
    tidy_marginal_predictions() (#245)
  • fix in supported_models
  • bug fix when using tidy_parameters() for mixed models (#238)
  • bug fix for survey::svyglm() models with replicate weights (#240)

broom.helpers 1.14.0

07 Aug 16:20
Compare
Choose a tag to compare

New features

  • support for MASS::contr.sdif() contrasts (#230)
  • support for pscl::zeroinfl() and pscl::hurdle() models (#232)
  • support for betareg::betareg() models (#234)

Fix

  • input of packageVersion() should be a character string (#225)

broom.helpers 1.13.0

28 Mar 09:36
Compare
Choose a tag to compare

New features

  • tidy_add_estimate_to_reference_rows() now also populate p-values and
    confidence intervals for sum contrasts (#220)
  • Marginal tidiers are now compatible with nnet::multinom(), MASS::polr(),
    ordinal::clm() and ordinal::clmm() models, as long as the type of models
    is supported by the corresponding package, for example, margins does not
    currently support nnet::multinom() models (#215)

Improvements

  • Marginal predictions vignette has been updated to follow changes in
    marginaleffects version 0.10.0 (#216)

broom.helpers 1.12.0

09 Feb 16:55
Compare
Choose a tag to compare

New features

  • Set of functions to support marginal predictions, contrasts and slopes /
    effects (#202):
    • A dedicated article presenting the concepts and the different functions
      has been added to the package documentation website
    • Several tidiers are provided to tidy results in a way that it could be
      used by broom.helpers functions.
    • Marginal Predictions: tidy_marginal_predictions(),
      plot_marginal_predictions(), tidy_all_effects(), and tidy_ggpredict()
    • Marginal Means: tidy_marginal_means()
    • Marginal Contrasts: tidy_avg_comparisons() and
      tidy_marginal_contrasts()
    • Marginal Effects: tidy_avg_slopes() and tidy_margins()
  • New method model_list_higher_order_variables() to list the highest order
    combinations of variables (#202)
  • New method model_get_response_variable() to get the name of the response
    variable (#202)
  • New helper function seq_range() to generate a sequence of values between
    the minimum and the maximum of a vector (#202)
  • New argument contrasts_adjust in tidy_plus_plus(),
    tidy_add_pairwise_contrasts() and model_get_pairwise_contrasts() allowing
    to change the adjustment method used to compute pairwise contrasts (#204)

broom.helpers 1.11.0

06 Jan 12:26
Compare
Choose a tag to compare

New features

  • New functions tidy_add_pairwise_contrasts() and model_get_pairwise_contrasts()
    to compute pairwise contrasts of categorical variables with emmeans,
    and corresponding new arguments in tidy_plus_plus() (#192)
  • New tidier tidy_margins() to display Average Marginal Effects (#195)
  • New tidier tidy_all_effects() to display Marginal Effects (#195)
  • New tidier tidy_ggpredict() to display Conditional Effects (#195)

Bug fixes and improvements

  • Better messages when exponentiate argument is not appropriate (#197)

broom.helpers 1.10.0

30 Nov 18:30
Compare
Choose a tag to compare

New features

  • tidy_select_variables() now sorts the variables according to include (#183)

New supported models

  • Support for logitr::logitr() models (#179)
  • Experimental support for multgee::nomLORgee() and multgee::ordLORgee()
    models (#185)

Bug fixes and improvements

  • Improvement of .get_package_dependencies() to be more efficient. It now
    looks only at a single package description file (#178)
  • New function .get_all_packages_dependencies() to list all dependencies of
    all packages (#178)
  • Bug fix in .get_min_version_required() (#181)

broom.helpers 1.9.0

24 Sep 09:43
Compare
Choose a tag to compare

New features

  • New function .get_package_dependencies() listing all dependencies, including
    minimum version required, of a package. (#171)
  • Improvement of .assert_package() now taking into account the comparison
    operator (> or >=) when a minimum version is required (#171)

Bug fixes and improvements

  • Compatibility with upcoming tidyselect v1.2.0 (#173)
  • Avoid an unwanted warning for some mgcv::gam() models (#175)

broom.helpers 1.8.0

06 Jul 10:51
Compare
Choose a tag to compare

New supported models

  • Support for parsnip::model_fit objects (#161)
  • Support for biglm::bigglm() and biglmm::bigglm() models (#155)
  • Support for fixest::feglm(), fixest::femlm(), fixest::feols()
    and fixest::feNmlm() (requires R>=4.1) (#167)

New features

  • Support for dplyr::vars() (also exported by {gtsummary}) as a selector has
    now been deprecated. Users will be warned that support for vars() will
    eventually be removed from the package (#154)
  • .is_selector_scoped(), an internal function used in generating custom
    selector functions, is now exported (#163)