Releases: larmarange/broom.helpers
Releases · larmarange/broom.helpers
broom.helpers 1.7.0
New features
- The
.assert_package()
now usesrlang::check_installed()
and
rlang::is_installed()
to check whether needed packages are installed. The
rlang::check_installed()
prompts user to install needed package when run
interactively. (#147) tidy_add_n()
andmodel_get_n()
support fortidycmprsk::crr()
models (#143)- Listing of supported models is now available in
supported_models
tibble (#145)
Bug fixes
- Avoiding duplicating rows when applying
tidy_add_n()
to amgcv::gam()
model with smooth terms (#150)
broom.helpers 1.6.0
New supported models
- Support for
plm::plm()
models (#140)
New features
- The
.formula_list_to_named_list()
now respects theselect_single=
argument for all inputs types. Previously, named lists were ignored. - Added new argument
.formula_list_to_named_list(null_allowed=)
argument
that works in conjunction withtype_check=
asserting the class/type of
the RHS of the formula (or the value of the named list) (#137) - Better error message in
.formula_list_to_named_list()
(#136)
Bug fixes
- Fix so
.formula_list_to_named_list(type_check=)
checks RHS of a formula
and the value of named list. (#138)
broom.helpers 1.5.0
New features
- New method
model_get_coefficients_type.tidycrr()
(#128) - Updated error messaging about using
broom.helpers::tidy_parameters()
to include the package prefix. This message sometimes appears while
runninggtsummary::tbl_regression()
where some users may not be
aware where thetidy_paramters()
function lives. (#129) .formula_list_to_named_list()
improvement: it is now possible to add
a type check (#132)- New functions
.assert_package()
and.get_min_version_required()
to
check for a package's installation status and whether the installed
version meets the minimum required version from the DESCRIPTION file (#134)
Bug fixes
broom.helpers 1.4.0
New supported models
- Support for
glmmTMB::glmmTMB()
models (#119)
New features
- Function arguments that accept formula-list values now have more flexible inputs. (#121)
- The passed list may now be a combination of named lists and lists of formulas, e.g.
list(trt ~ 1, all_continuous() ~ 2)
. - The shortcut
~ <value>
may be now used to indicateeverything() ~ <value>
- The passed list may now be a combination of named lists and lists of formulas, e.g.
Bug fixes
broom.helpers 1.3.0
New supported models
- Support of
rstanarm::stan_glm()
models - Basic support for
VGAM::vglm()
models (#105)
New features
broom.helpers 1.2.1
broom.helpers 1.2.0
New features
model_get_coefficients_type()
now returns "relative_risk" for log-binomial
models (#101)- New function
tidy_disambiguate_terms()
for disambiguating random-effect
terms in mixed models and new options fortidy_plus_plus()
:
disambiguate_terms
(TRUE
by default) anddisambiguate_sep
(#98) - For mixed models,
var_type
column is now equal to"ran_pars"
or
"ran_vals"
for random-effect parameters and values, based of the
effect
column returned bybroom.mixed::tidy()
(#90) - New contrasts type ("no.contrast") returned by
model_list_contrasts
() - New function
tidy_add_n()
to add the number of observations (and for
relevant models the number of events and exposure time) (#64) - New option
add_n
intidy_plus_plus()
(#64) - New functions
model_get_n()
,model_get_weights()
,model_get_offset()
,
model_get_response()
andmodel_compute_terms_contributions()
(#64)
New supported models
- Support of
lfe::felm()
models (#79) - Support of
brms::brm()
models (#89) - Basic support of
cmprsk::crr()
models (#91) - Basic support of
stats::nls()
models (#97) - Models with categorical variable and no intercept now supported (#85)
- Added support for
mgcv::gam()
models. (#82)
Bug fixes and other changes
broom.helpers 1.1.0
- Minor breaking change: column
var_type
returned bytidy_identify_variables()
is now equal to"dichotomous"
for categorical variables with only
2 levels - Minor breaking changes: for intercepts terms,
tidy_identify_variables()
now populatesvariable
column byterm
content, instead ofNA
(#66) - Minor breaking change: If the variables can't be identified by
tidy_identify_variables()
, thevariable
column is now populated
with the content of theterm
column (#63) - Exporting select helper utility functions (#65)
.generic_selector()
: makes it easy to create selecting functions likeall_continuous()
..select_to_varnames()
: converts selecting syntax into character varnames.formula_list_to_named_list()
: takes the formula selecting syntax and converts it to a named list.
- New selecting functions
all_continuous()
,all_categorical()
,
all_dichotomous()
,all_contrasts()
,all_intercepts()
andall_interaction()
for selecting variables
from models (#54) - Added support for multiple imputation models from the {mice}
package. The model passed must be the un-pooled models, and the
pooling step included intidy_fun=
(#49 @ddsjoberg) - New function
tidy_select_variables()
to keep/drop
selected variables in the output (#45) - New functions
tidy_add_coefficients_type()
and
model_get_coefficients_type
to get the type of coefficients
(generic, logistic, Poisson or proportional hazard) used
by a model (#46) tidy_add_contrasts()
andmodel_list_contrasts()
now return an
additional columncontrasts_type
- New
no_reference_row
argument fortidy_add_reference_rows()
(#47) - New method
model_get_nlevels
to get the number of levels of categorical variables - New column
var_nlevels
returned bytidy_identify_variables()
,
model_identify_variables()
andtidy_plus_plus()
- Categorical terms can now be customized with a pattern taking into account
term level, reference level and/or variable label, seemodel_list_terms_levels()
andcategorical_terms_pattern
intidy_plus_plus()
andtidy_add_term_labels
(#61) model_list_terms_levels()
now returns additional columns (level
,reference_level
contrasts_type
,var_label
,var_levels
anddichotomous
)model_list_variables()
now returns an additionalvar_label
column- The
exponentiate
argument is now passed to thetidy_*()
functions, as an attribute attached to the tibble, as well as custom labels
(variable_labels
andterm_labels
) show_single_row
argument now accepts tidyselect notation (#51 @ddsjoberg)tidy_add_estimate_to_reference_rows()
now relies onemmeans
for
sum contrasts, allowing to cover a wider range of models- Tibbles returned by
tidy_*
functions also inherits of"broom.helpers"
class (#56) interaction_sep
argument has been added totidy_plus_plus()
- Better management of variables with non standard names (#67)
.clean_backticks()
and.escape_regex()
are now exported- Bug fix for non standard variable names containing
a character that would have a special meaning in
a regular expression (#44) - Bug fix in
tidy_add_header_rows()
fornnet::multinom
models:
label for header rows was missing (#50) - Bug fix: now
tidy_identify_variables()
correctly identify class "integer"
for this type of variables (#57) - Bug fix for
tidy_add_header_rows()
for continuous variables with a non
standard name (#70)
broom.helpers 1.0.0
Initial release