Recent Releases of broom
broom - broom 1.0.8
Deprecations
- Removed tidiers for objects from the orcutt package as it was archived from CRAN 4 months prior to the package release.
Minor Improvements
tidy.coeftestnow returns non-NAvalues forconf.lowandconf.highfor a model fitted with only a constant term and cluster robust std errors computed usingvcovCLfromsandwich(#1227).Added support for new column name in lme4 ANOVA output. (lme4 tidiers are technically supplied by broom.mixed, but intermediate output is routed through broom's
tidy.anova()method) (#1239).
Miscellaneous
- Various improvements to infrastructure and testing:
- Migrated all messages, warnings, and errors to use the cli package (#1230).
- Aligned names of source and test files (#1229).
- Transitioned to the third edition of testthat (#1228).
- R
Published by simonpcouch about 1 year ago
broom - broom 1.0.7
Corrected
nobsentries inglance.coxph()output: the package used to returnlength(object$linear.predictors)(equal tonrather thannevent) and now uses survival's method (#1224).Corrected confidence interval values in
tidy.boot()and addressed errors when bootstrapping confidence intervals for multiple terms (#1212).Reverted deprecation of tidiers for objects from the margins package now that the package is back on CRAN (#1220).
Addressed failure in
tidy.anova()ahead of upcoming car release (#1215).Clarified documentation for a number of cases where dots were documented as unused but actually passed to internal functions (#1214).
Addressed error in
augment.betareg()andaugment.betamfx()withdata = NULLand non-nullnewdata(#1216, #1218).glance.lm()now returns non-NAvalues forstatistic,p.value, anddffor models fitted with a single predictor and no intercept (@jrob95, #1209).
- R
Published by simonpcouch over 1 year ago
broom - broom 1.0.6
New Features
Added support for
conf.levelinaugment.lm()(#1191 by@zietzm).Added support for columns
adj.r.squaredandnparinglance()method for objects outputted frommgcv::gam()(#1172).
Deprecations
Soft-deprecated tidiers for margins objects, as the package was archived from CRAN in April 2024. In the case that the package is back on CRAN before the next package release, broom will once again Suggest and test support for the package (#1200).
Moved forward with deprecation of tidiers for objects from the sp package. See resources linked in tidymodels/broom#1142 for more information on migration from retiring spatial packages.
Bug Fixes
While this broom release contains no changes to the
tidy.survfit()method for objects from the survival package, the package has bumped the minimum required version for survival. Before survival 3.6-4,tidy.survfit()propagated "inconsistent"n.censorvalues from survival for multi-state models (#1195).Corrected confidence interval values for precision components in
tidy.betareg()output (#1169).Fixed bug in tidier for
car::linearHypothesis()output with long formulas (#1171).Corrected coefficient values in
tidy.varest()output (#1174).
- R
Published by simonpcouch about 2 years ago
broom - broom 1.0.5
tidy.coxph()will now pass its ellipses...tosummary()internally (#1151 by@ste-tuf).Transitioned the deprecation of the
regionargument totidy.SpatialPolygonsDataFramefrom a warn- to a hard-deprecation (#1142).Removed maptools and rgeos as Suggested packages ahead of their retirement. sp tidiers will be removed from a future release of the package (#1142).
Addressed bug in mlogit tidiers where
augment.mlogit()would fail if supplied a model fitted with a non-defaultdfidx()(#1156 by@gregmacfarlane).Addressed bug in ANOVA tidiers where
tidy.anova()would fail if passed a model with many predictors (#1159 by@jwilliman).Addressed warnings in ANOVA tidiers for unrecognized column names
Resid..Df,Resid..Dev, andDeviance; those columns will be renameddf.residual,residual.deviance, anddeviance, respectively (#1159 by@jwilliman).
- R
Published by simonpcouch almost 3 years ago
broom - broom 1.0.4
- Added an
interceptargument totidy.aov(), a logical indicating whether to include information on the intercept as the first row of results (#1144 by@victor-vscn). - Moved forward with soft-deprecation of tidiers for objects from the sp package ahead of the retirement of the rgeos and maptools packages later this year. sp tidiers will be removed from a future release of the package (#1142).
- Fixed bug in
augment.glm()where the.std.residcolumn always contained standardized deviance residuals regardless of the value passed to thetype.residualsargument (#1147).
- R
Published by simonpcouch about 3 years ago
broom - broom 1.0.3
- Addressed test failures on R-devel.
- Fixed bug in
tidy.multinom()where theconf.levelargument would be ignored.
- R
Published by simonpcouch over 3 years ago
broom - broom 1.0.2
- Fixed a bug where
augment()results would not include residuals when the response term included a function call (#1121, #946, #937, #124). - The default
dataargument foraugment.coxph()andaugment.survreg()has been transitioned fromNULLtomodel.frame(x)(#1126 by@capnrefsmmat). - Migrated 'ggplot2' from strong to weak dependency, i.e. moved from
ImportstoSuggests.
- R
Published by simonpcouch over 3 years ago
broom - broom 1.0.1
- Improves performance of
tidy.lm()andtidy.glm()for full-rank fits (#1112 by@capnrefsmmat). In some contexts, execution time is halved. With broom 1.0.0:
``` r library(broom)
system.time( replicate(1000, tidy(lm(dist ~ speed, data = cars))) )
> user system elapsed
> 1.385 0.010 1.396
```
With this release:
``` r system.time( replicate(1000, tidy(lm(dist ~ speed, data = cars))) )
> user system elapsed
> 0.626 0.011 0.638
```
Created on 2022-08-30 by the reprex package (v2.0.1)
- Moves forward with deprecation of tidiers for sparse matrices outputted from the Matrix package, initially soft-deprecated in broom 0.5.0. The Matrix tidiers were light wrappers around coercion methods that will now be deprecated from Matrix itself in the upcoming 1.4-2 release. The affected methods are
tidy.sparseMatrix(),tidy.dgCMatrix(), andtidy.dgTMatrix(). Note thattidy.confusionMatrix(), for relevant objects outputted from the caret package, is unaffected (#1113). tidy.anova()works again withanovaobjects from thelme4package (broken by addition of thetermscolumn in the previous release)
- R
Published by simonpcouch almost 4 years ago
broom - broom 1.0.0
broom 1.0.0 is the first "production" release of the package, and includes a number of notable changes to both functionality and governance.
As of this release, the broom team will be following a set of guidelines that clarify the scope of further development on the package. Given the package's wide use and long history, these guidelines prioritize backward compatibility over internal consistency and completeness. You can read those guidelines here!
We've also made notable changes to error handling in this release:
- Adds minimal ellipsis checking to warn on commonly misspecified arguments passed through ellipses. Notably:
tidy()methods will now warn when supplied anexponentiateargument if it will be ignored.augment()methods will now warn when supplied anewdataargument if it will be ignored.
- The warning regarding tidiers only maintained via dispatch to
lmandglmis now displayed only once per session, per unique dispatch. That is, if aclass_aobject is tidied using a(g)lmmethod, broom will not warn when tidyingclass_aobjects for the rest of the session, but if aclass_bobject is tidied using a(g)lmmethod in the same session, broom will warn again (#1101).
Other fixes and improvements:
- Add
exponentiateargument totidy.boot()(#1039). - Update in
tidy.htest()converting matrix-columns to vector-columns (#1081). - Address failures in
tidy.glht()withconf.int = TRUE(#1103). - Address failures in
tidy.zoo()when input data does not havecolnames(#1080). - Transition tidiers for bivariate linear or spline-based interpolation---using list tidiers to interface with objects from the akima package is now considered off-label. See the interp package for a FOSS alternative.
- Address failures in
tidy.svyolr()whenp.values = TRUE. Instead of aliasingtidy.polr()directly,tidy.svyolr()lightly wraps that method and warns ifp.valuesis supplied (#1107). - Adds a
termcolumn and introduces support forcar::lht()output intidy.anova()(#1106 by@grantmcdermott). - Adds a dedicated
glance.anovamethod (which previously dispatched to the
deprecatedglance.data.frame()tidier, #1106 by@grantmcdermott).
As always, thanks to the broom community for their contributions and feedback! 🧹
- R
Published by simonpcouch almost 4 years ago
broom - broom 0.8.0
This update makes significant improvements to documentation, fixes a number of bugs, and brings the development flow of the package up to date with other packages in the tidymodels.
In the big picture, this release:
- Makes many improvements to documentation:
- All tidiers now have example code demonstrating usage in their documentation. Tidiers for base packages as well as selected others also include sample code for visualization of results with ggplot2.
- Code examples in the documentation largely now follow consistent style---these changes were made largely to reflect the tidyverse style guide, addressing spacing, object naming, and commenting, among other things.
- Examples previously marked with
\dontrunor\donttesthave been workshopped to run reliably.
- Clarifies errors and warnings for deprecated and un-maintained tidiers.
- Ensures that tidiers are placed in files named according to the model-supplying package rather than the model object class for easier navigability of the source code.
Bug fixes and other improvements
- Fix
glance.fixesterror when model includes only fixed effects and no regressors (#1018by@arcruz0,#1088by@vincentarelbundock). - Address excessive messaging from
tidy.speedlm(#1084by@cgoo4,#1087by@vincentarelbundock). - Add
nobscolumn to the output ofglance.svyglm(#1085by@fschaffner,#1086by@vincentarelbundock). - Ensure
tidy.prcompdescription entries use consistent punctuation (#1072by@PursuitOfDataScience). - Address breaking changes in
glance.fixestandtidy.btergm. - Simplify handling of
MASS::polroutput in the correspondingtidyandaugmentmethods. - Align continuous integration with current standards in tidymodels packages.
- R
Published by simonpcouch about 4 years ago
broom - broom 0.7.11
- Addressed issue with the ordering of original observations in
augment.rqs. Now function preserves the originaldata.framenames also when the inputdata.frameonly has one column (#1052by@ilapros). - Addressed warning from
tidy.rmawhenx$ddfhas length greater than 1 (#1064by@wviechtb). - Fix errors in
glance.lavaanin anticipation of upcomingtidyrrelease (#1067by@DavisVaughan). - Corrected the confidence interval in
tidy.crr(). Thetidy.crr(conf.level=)argument was previously ignored (#1068by@ddsjoberg).
- R
Published by simonpcouch over 4 years ago
broom - broom 0.7.10
- Clarifies error when
pysch::mediateoutput is dispatched totidy.mediate(#1037by@LukasWallrich). - Allows user to specify confidence level for
tidy.rma(#1041by@TarenSanders) - Clarifies documentation related to usage of
augment_columns(); most package users should useaugment()in favor ofaugment_columns(). See?augment_columnsfor more details. - Extends support for
emmeansby fixing non-standard column names in case of asymptotically derived inferential statistics. (#1046by@crsh) - Fixes use of index columns in
augment.mlogitand adds.residcolumn to output. (#1045,#1053,#1055, and#1056by@jamesrraeand@gregmacfarlane) - Correct column naming of standard error measures in
glance.survfit(). - Various bug fixes and improvements to documentation.
- R
Published by simonpcouch over 4 years ago
broom - broom 0.7.9
- Fix confidence intervals in
tidy.crr(), which were previously exponentiated whenexponentiate = FALSE(#1023by@leejasme) - Update
ergmtidiers in anticipation of changes in later releases. (#1034by@krivit) - Address breakages in
lfeandRchoicetidiers
- R
Published by simonpcouch almost 5 years ago
broom - broom 0.7.8
- Fixed bug in
glance.ergmrelated to handling of MCMC details. - Address breakages in unit tests for {fixest} tidiers.
- R
Published by simonpcouch almost 5 years ago
broom - broom 0.7.7
- Fixed bug in
tidy.epi.2by2that resulted in errors with new version ofepiR(#1028by@nt-williams) - Added
exponentiateargument totidy.gam()tidier applicable for parametric terms (#1013by@ddsjoberg) - Added
exponentiateargument totidy.negbin()tidier (#1011by@ddsjoberg) - Fixed failures in
spdeptidiers following breaking changes in the most recent release - Various bug fixes and improvements to documentation
- R
Published by simonpcouch almost 5 years ago
broom - broom 0.7.6
- Fixed bug in
augmenttidiers resulting in.fittedand.se.fitarray columns. - Fixed bug that made column
ynon-numeric aftertidy_xyz(#973by@jiho) - Added tidiers for
MASS:glm.nb(#998by@joshyam-k) - Fixed bug in
tidy.fixestthat sometimes prevented arguments likesefrom being used (#1001by@karldw) - Fixed bug in
tidy.fixestthat resulted in errors when columns with namexare present (#1007by@grantmcdermott) - Moved forward with planned deprecation of
gamlsstidiers in favor of those provided inbroom.mixed - Various bug fixes and improvements to documentation
- R
Published by simonpcouch about 5 years ago
broom - broom 0.7.5
- Fixed bug in the
nnet::multinomtidier in the case that the response variable has only two levels (#993by@vincentarelbundockand@hughjonesd) - Small fixes in anticipation of the upcoming
survivalrelease - Various bug fixes and improvements to documentation
- R
Published by simonpcouch over 5 years ago
broom - broom 0.7.4
broom 0.7.4 introduces tidier support for a number of new model objects and improves functionality of many existing tidiers!
New Tidiers
- Add tidiers for
Rchoiceobjects (#961by@vincentarelbundockand@Nateme16) - Add tidiers for objects produced by
car::leveneTest(#968by@vincentarelbundockand@mkirzon) - Add tidiers for objects produced by
cmprsk::crr(#971and#552by@vincentarelbundockand@margarethannum) - Add an
augment()method forgamobjects (#975and#645by@vincentarelbundock) - Add tidiers for
varsobjects (#979and#161by@vincentarelbundockand@Diego-MX)
This release also restores tidiers for felm objects from the lfe package, which was recently unarchived from CRAN.
Improvements to existing tidiers
tidy.emmGridcan now returnstd.errorandconf.*columns at the same time. (#962by@vincentarelbundockand@jmbarbone)tidy.garchcan now produce confidence intervals (#964by@vincentarelbundockand@IndrajeetPatil)tidy.coxphcan now report confidence intervals on models utilizing penalized/clustering terms (#966by@vincentarelbundockand@matthieu-faron)augment.lmnow works when some regression weights are equal to zero (#965by@vincentarelbundockand@vnijs)tidy.coxphcan now handle models utilizing penalized/clustering terms (#966and#969by@vincentarelbundock,@matthieu-faron, and@KZARCA)- Fix bug in
tidy.speedglmon R 4.0.0+ (#974by@uqzwang) - tidy.multinom works with matrix response (
#977and#666by@vincentarelbundockand@atyre2) - Various bug fixes and improvements to documentation and errors.
- R
Published by simonpcouch over 5 years ago
broom - broom 0.7.3
In broom 0.7.0, we introduced an error for model objects that subclassed lm and relied on tidy.lm(), or similarly for tidy.glm(). Tidiers for these objects were supported unintentionally, and we worried that tidiers for these objects would silently report innaccurate results.
In hindsight, this change was unnecessarily abrupt. We've decided to roll back this change, instead providing the following warning before allowing such objects to fall back to the lm/glm tidier methods:
Tidiers for objects of class {subclass} are not maintained by the broom team, and are only supported through the {dispatched method} tidier method. Please be cautious in interpreting and reporting broom output."
In addition,
- Restores tidiers for
summary.lmobjects (#953by@grantmcdermott) - Deprecate tidiers for the
lfepackage, which was archived from CRAN. - Various bug fixes and improvements to documentation and errors.
- R
Published by simonpcouch over 5 years ago
broom - broom 0.7.2
- In broom
0.7.0, we introduced an error for objects that subclassedlmand relied ontidy.lm(). We've transitioned this error to a warning. - Various bug fixes and improvements to documentation and errors.
- R
Published by simonpcouch over 5 years ago
broom - broom 0.7.1
While broom 0.7.1 is a minor release, it includes a number of exciting new features and bug fixes!
New tidiers
- Add tidiers for
marginsobjects. (#700by@grantmcdermott) - Added tidier methods for
mlogitobjects (#887by@gregmacfarlane) - Add
glance.coeftest()method (#932by@grantmcdermott)
Improvements to existing tidiers
One of the more major improvements in this release is the addition of the
interval argument to some augment methods for confidence, prediction,
and credible intervals. These columns will be consistently labeled .lower
and .upper! (#908 by @grantmcdermott, #925 by @bwiernik)
In addition...
- Extended the
glance.aov()method to include anr.squaredcolumn! glance.survfit()now passes...tosummary.survfit()to allow for adjustment of RMST and other measures (#880by@vincentarelbundock)- Several unsupported model objects that subclass
glmandlmnow error more informatively. - A number of improvements to documentation throughout the package.
Bug fixes
- Fixed
newdatawarning message inaugment.*()output when thenewdatadidn't contain the response variable—augment methods no longer expect the response variable in the suppliednewdataargument. (#897by@rudeboybert) - Fixed a bug related to
tidy.geeglm()not being sensitive to theexponentiateargument (#867) - Fixed
augment.fixest()returning residuals in the.fittedcolumn. The method also now takes atype.residualsargument and defaults to the sametype.predictargument as thefixestpredict()method. (#877by@karldw) - Fix
tidy.felmconfidence interval bug. Replaces "robust" argument with "se.type". (#919by@grantmcdermott; supersedes#818by@kuriwaki) - Fix a bug in
tidy.drc()where some term labels would result in the overwriting of entries in thecurvecolumn (#914) - Fixed bug related to univariate zoo series in
tidy.zoo()(#916by@WillemVervoort) - Fixed a bug related to
tidy.prcomp()assigning the wrong PC labels from "loadings" and "scores" matrices (#910by@tavareshugo) - Fixed
tidy.polr()bug where p-values could only be returned ifexponentiate = FALSE.
Deprecations
We followed through with the planned deprecation of character vector tidiers in this release. Other vector tidiers that were soft-deprecated in 0.7.0 will be fully deprecated in a later release.
- R
Published by simonpcouch over 5 years ago
broom - broom 0.7.0
broom 0.7.0 is a major release with a large number of new tidiers, improvements to internal consistency, and deprecations of functions and arguments. See the package NEWS for more information!
- R
Published by simonpcouch almost 6 years ago
broom - Broom 0.5.3
Minor updates to remain on CRAN after changes to matrix classing behavior in R 4.0.0
- R
Published by alexpghayes over 6 years ago
broom - Broom 0.5.2
- Users should notice no differences from previous releases
- Fixes failing CRAN checks
- Rewrite of
tidy.ergm()internals for ergm 3.10
- R
Published by alexpghayes about 7 years ago
broom - Broom 0.5.1
Minor update to re-export tidy(), glance() and augment() from the generics package.
- R
Published by alexpghayes over 7 years ago
broom - Broom 0.5.0
Details available at https://broom.tidyverse.org/news/. This commit is exactly the code in the CRAN 0.5.0 version of the package.
- R
Published by alexpghayes almost 8 years ago
broom - Version 0.4.0: Many new tidiers; fixed issues in ANOVA and lme4
- Added tidiers for geeglm, nlrq, roc, boot, bgterm, kappa, binWidth, binDesign, rcorr, stanfit, rjags, gamlss, and mle2 objects.
- Added
tidymethods for lists, including u, d, v lists fromsvd, and x, y, z lists used byimageandpersp - Added
quickargument totidy.lm,tidy.nls, andtidy.biglm, to create a smaller and faster version of the output. - Changed
rowwise_df_tidiersto allow the original data to be saved as a list column, then provided as a column name toaugment. This required removingdatafrom theaugmentS3 signature. Also addedtests-rowwise.R - Fixed various issues in ANOVA output
- Fixed various issues in lme4 output
- Fixed issues in tests caused by dev version of ggplot2
- R
Published by dgrtwo over 10 years ago
broom - Version 0.3.7 Tidiers for biglm, coeftest, plm, power.htest, lme, and more
- Added tidiers for "plm" (panel linear model) objects from the plm package.
- Added
tidy.coeftestfor coeftest objects from the lmtest package. - Set up
tidy.lmto work with "mlm" (multiple linear model) objects (those with multiple response columns). - Added
tidyandglancefor "biglm" and "bigglm" objects from the biglm package. - Fixed bug in
tidy.coxphwhen one-row matrices are returned - Added
tidy.power.htest - Added
tidyandglanceforsummaryDefaultobjects - Added tidiers for "lme" (linear mixed effects models) from the nlme package
- Added
tidyandglanceformultinomobjects from the nnet package.
- R
Published by dgrtwo about 11 years ago
broom - Version 0.3.6 Tidying for matrices, aovlist, and glance for aov
- Fixed bug in
tidy.pairwise.htest, which now can handle cases where the grouping variable is numeric. - Added
tidy.aovlistmethod. This addedstringrpackage to IMPORTS to trim whitespace from the beginning and end of thetermandstratumcolumns. This also required adjustingtidy.aovso that it could handle strata that are missing p-values. - Set up
glance.lmto work withaovobjects along withlmobjects. - Added
tidyandglancefor matrix objects, withtidy.matrixconverting a matrix to a data frame with rownames included, andglance.matrixreturning the same result asglance.data.frame. - Changed DESCRIPTION Authors@R to new format
- R
Published by dgrtwo over 11 years ago
broom - Version 0.3.5: rlm and gam tidiers, fixed bugs in felm and cv.glmnet
- Fixed small bug in
felmwhere the.fittedand.residcolumns were matrices rather than vectors. - Added tidiers for
rlm(robust linear model) andgam(generalized additive model) objects, including adjustments to "lm" tidiers in order to handle them. See?rlm_tidiersand?gam_tidiersfor more. - Removed rownames from
tidy.cv.glmnetoutput
- R
Published by dgrtwo over 11 years ago
broom - Version 0.3.4: NA-handling in augment; rowwise tidying
- The behavior of
augment, particularly with regard to missing data and thena.excludeargument, has through the use of theaugment_columnsfunction been made consistent across the following models:lmglmnlsmerMod(lme4)survreg(survival)coxph(survival)
Unit tests in tests/testthat/test-augment.R were added to ensure consistency across these models.
- tidy, augment and glance methods were added for rowwise_df objects, and are set up to apply across their rows. This allows for simple patterns such as:
regressions <- mtcars %>% group_by(cyl) %>% do(mod = lm(mpg ~ wt, .))
regressions %>% tidy(mod)
regressions %>% augment(mod)
See ?rowwise_df_tidiers for more.
- Added tidy and glance methods for Arima objects, and tidy for pairwise.htest objects.
- Fixes for CRAN: change package description to title case, removed NOTES, mostly by adding globals.R to declare global variables.
- This is the original version published on CRAN.
- R
Published by dgrtwo over 11 years ago
broom - Version 0.3: tidiers for lme4, glmnet, survival, and more
- Tidiers have been added for S3 objects from the following packages:
lme4glmnetsurvivalzoofelmMASS(ridgelmobjects)
tidyandglancemethods for data.frames have also been added, andaugment.data.frameproduces an error (rather than returning the same data.frame).stderrorhas been changed tostd.error(affects many functions) to be consistent with broom's naming conventions for columns.- A function
bootstraphas been added based on this example, to perform the common use case of bootstrapping models.
- R
Published by dgrtwo over 11 years ago
broom - Version 0.2: augment and glance
This release introduces the augment and glance generics, while the original included only tidy. The three methods are explained in the vignettes, and the changes to the package in the NEWS file.
- R
Published by dgrtwo over 11 years ago