From 4f3b5201ee48ec1528d67ecbf83b259ad7a7ea34 Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Fri, 24 Jul 2020 19:11:34 +0200 Subject: [PATCH] cran 4.0.4 submission; closes #23 --- .travis.yml | 3 +- CRAN-RELEASE | 4 +- DESCRIPTION | 2 +- NEWS.md | 4 +- codemeta.json | 4 +- cran-comments.md | 2 +- docs/404.html | 2 +- docs/CODE_OF_CONDUCT.html | 2 +- docs/CONTRIBUTING.html | 2 +- docs/ISSUE_TEMPLATE.html | 2 +- docs/LICENSE-text.html | 2 +- docs/LICENSE.html | 2 +- docs/SUPPORT.html | 2 +- docs/authors.html | 2 +- docs/index.html | 2 +- docs/news/index.html | 11 ++- docs/pkgdown.yml | 2 +- docs/reference/augment.html | 79 ++++++++--------- docs/reference/easystats_to_tidy_names.html | 14 +-- docs/reference/glance.html | 18 ++-- docs/reference/glance_performance.html | 12 +-- docs/reference/grouped_augment.html | 98 ++++++++++----------- docs/reference/grouped_glance.html | 64 +++++++------- docs/reference/grouped_tidy.html | 76 ++++++++-------- docs/reference/index.html | 2 +- docs/reference/reexports.html | 2 +- docs/reference/tidy.html | 18 ++-- docs/reference/tidy_parameters.html | 12 +-- 28 files changed, 225 insertions(+), 220 deletions(-) diff --git a/.travis.yml b/.travis.yml index a70d3ff..4e6bf8c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ language: r r: - release - devel - #- oldrel + - oldrel latex: true warnings_are_errors: TRUE @@ -19,6 +19,7 @@ addons: - libudunits2-dev - libgdal-dev - libproj-dev + - libnode-dev before_install: - mkdir -p ~/.R diff --git a/CRAN-RELEASE b/CRAN-RELEASE index 906553c..8356c11 100644 --- a/CRAN-RELEASE +++ b/CRAN-RELEASE @@ -1,2 +1,2 @@ -This package was submitted to CRAN on 2020-06-19. -Once it is accepted, delete this file and tag the release (commit a321e80bef). +This package was submitted to CRAN on 2020-07-24. +Once it is accepted, delete this file and tag the release (commit 473ed6d). diff --git a/DESCRIPTION b/DESCRIPTION index 69c7a7a..8c114d2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: broomExtra Title: Enhancements for 'broom' and 'easystats' Package Families -Version: 4.0.3.9000 +Version: 4.0.4 Authors@R: person(given = "Indrajeet", family = "Patil", diff --git a/NEWS.md b/NEWS.md index 440990a..3b4f166 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,6 @@ -# broomExtra 4.0.3.9000 +# broomExtra 4.0.4 + + - Adapts tests to changes made to `parameters` package. # broomExtra 4.0.3 diff --git a/codemeta.json b/codemeta.json index b1eeb35..c1c00bc 100644 --- a/codemeta.json +++ b/codemeta.json @@ -14,7 +14,7 @@ ], "issueTracker": "https://github.com/IndrajeetPatil/broomExtra/issues", "license": "https://spdx.org/licenses/GPL-3.0", - "version": "4.0.3.9000", + "version": "4.0.4", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R", @@ -274,5 +274,5 @@ } ], "funder": {}, - "fileSize": "1702.388KB" + "fileSize": "1701.779KB" } diff --git a/cran-comments.md b/cran-comments.md index 213b44b..089701c 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -9,4 +9,4 @@ ## Comments -- Minor release to fix `NOTE` produced in new `R`-devel checks. +- Minor release to fix tests for the upcoming release of `parameters`. diff --git a/docs/404.html b/docs/404.html index 0937579..1854d0f 100644 --- a/docs/404.html +++ b/docs/404.html @@ -87,7 +87,7 @@ broomExtra - 4.0.3.9000 + 4.0.4 diff --git a/docs/CODE_OF_CONDUCT.html b/docs/CODE_OF_CONDUCT.html index cd3709a..e67d621 100644 --- a/docs/CODE_OF_CONDUCT.html +++ b/docs/CODE_OF_CONDUCT.html @@ -87,7 +87,7 @@ broomExtra - 4.0.3.9000 + 4.0.4 diff --git a/docs/CONTRIBUTING.html b/docs/CONTRIBUTING.html index bf8efc6..5522bbc 100644 --- a/docs/CONTRIBUTING.html +++ b/docs/CONTRIBUTING.html @@ -87,7 +87,7 @@ broomExtra - 4.0.3.9000 + 4.0.4 diff --git a/docs/ISSUE_TEMPLATE.html b/docs/ISSUE_TEMPLATE.html index f649234..d106d45 100644 --- a/docs/ISSUE_TEMPLATE.html +++ b/docs/ISSUE_TEMPLATE.html @@ -87,7 +87,7 @@ broomExtra - 4.0.3.9000 + 4.0.4 diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index baab51b..ea4c5c4 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -87,7 +87,7 @@ broomExtra - 4.0.3.9000 + 4.0.4 diff --git a/docs/LICENSE.html b/docs/LICENSE.html index 2d29058..43c1382 100644 --- a/docs/LICENSE.html +++ b/docs/LICENSE.html @@ -87,7 +87,7 @@ broomExtra - 4.0.3.9000 + 4.0.4 diff --git a/docs/SUPPORT.html b/docs/SUPPORT.html index 51cf2f5..554a0da 100644 --- a/docs/SUPPORT.html +++ b/docs/SUPPORT.html @@ -87,7 +87,7 @@ broomExtra - 4.0.3.9000 + 4.0.4 diff --git a/docs/authors.html b/docs/authors.html index f8bdd10..aae7b0a 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -87,7 +87,7 @@ broomExtra - 4.0.3.9000 + 4.0.4 diff --git a/docs/index.html b/docs/index.html index 1b5bd0c..4069586 100644 --- a/docs/index.html +++ b/docs/index.html @@ -48,7 +48,7 @@ broomExtra - 4.0.3.9000 + 4.0.4 diff --git a/docs/news/index.html b/docs/news/index.html index c86a5fe..c076f26 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -87,7 +87,7 @@ broomExtra - 4.0.3.9000 + 4.0.4 @@ -136,10 +136,13 @@

Changelog

Source: NEWS.md -
-

-broomExtra 4.0.3.9000 Unreleased +
+

+broomExtra 4.0.4 Unreleased

+
    +
  • Adapts tests to changes made to parameters package.
  • +

diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 321f13f..c206687 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -2,7 +2,7 @@ pandoc: '2.10' pkgdown: 1.5.1 pkgdown_sha: ~ articles: [] -last_built: 2020-07-12T17:50Z +last_built: 2020-07-24T16:57Z urls: reference: https://indrajeetpatil.github.io/broomExtra//reference article: https://indrajeetpatil.github.io/broomExtra//articles diff --git a/docs/reference/augment.html b/docs/reference/augment.html index 057aa2a..62a6c24 100644 --- a/docs/reference/augment.html +++ b/docs/reference/augment.html @@ -90,7 +90,7 @@ broomExtra - 4.0.3.9000 + 4.0.4

@@ -228,52 +228,51 @@

See a

Examples

set.seed(123) -library(lme4) - +library(lme4)
#> Loading required package: Matrix
# mixed-effects models (`broom.mixed` will be used) lmm.mod <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy) -broomExtra::augment(lmm.mod)
#> # A tibble: 180 x 14 +broomExtra::augment(lmm.mod)
#> # A tibble: 180 x 14 #> Reaction Days Subject .fitted .resid .hat .cooksd .fixed .mu .offset -#> <dbl> <dbl> <fct> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 250. 0 308 254. -4.10 0.229 0.00496 251. 254. 0 -#> 2 259. 1 308 273. -14.6 0.170 0.0402 262. 273. 0 -#> 3 251. 2 308 293. -42.2 0.127 0.226 272. 293. 0 -#> 4 321. 3 308 313. 8.78 0.101 0.00731 283. 313. 0 -#> 5 357. 4 308 332. 24.5 0.0910 0.0506 293. 332. 0 -#> 6 415. 5 308 352. 62.7 0.0981 0.362 304. 352. 0 -#> 7 382. 6 308 372. 10.5 0.122 0.0134 314. 372. 0 -#> 8 290. 7 308 391. -101. 0.162 1.81 325. 391. 0 -#> 9 431. 8 308 411. 19.6 0.219 0.106 335. 411. 0 -#> 10 466. 9 308 431. 35.7 0.293 0.571 346. 431. 0 +#> <dbl> <dbl> <fct> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 250. 0 308 254. -4.10 0.229 0.00496 251. 254. 0 +#> 2 259. 1 308 273. -14.6 0.170 0.0402 262. 273. 0 +#> 3 251. 2 308 293. -42.2 0.127 0.226 272. 293. 0 +#> 4 321. 3 308 313. 8.78 0.101 0.00731 283. 313. 0 +#> 5 357. 4 308 332. 24.5 0.0910 0.0506 293. 332. 0 +#> 6 415. 5 308 352. 62.7 0.0981 0.362 304. 352. 0 +#> 7 382. 6 308 372. 10.5 0.122 0.0134 314. 372. 0 +#> 8 290. 7 308 391. -101. 0.162 1.81 325. 391. 0 +#> 9 431. 8 308 411. 19.6 0.219 0.106 335. 411. 0 +#> 10 466. 9 308 431. 35.7 0.293 0.571 346. 431. 0 #> .sqrtXwt .sqrtrwt .weights .wtres -#> <dbl> <dbl> <dbl> <dbl> -#> 1 1 1 1 -4.10 -#> 2 1 1 1 -14.6 -#> 3 1 1 1 -42.2 -#> 4 1 1 1 8.78 -#> 5 1 1 1 24.5 -#> 6 1 1 1 62.7 -#> 7 1 1 1 10.5 -#> 8 1 1 1 -101. -#> 9 1 1 1 19.6 -#> 10 1 1 1 35.7 -#> # ... with 170 more rows
+#> <dbl> <dbl> <dbl> <dbl> +#> 1 1 1 1 -4.10 +#> 2 1 1 1 -14.6 +#> 3 1 1 1 -42.2 +#> 4 1 1 1 8.78 +#> 5 1 1 1 24.5 +#> 6 1 1 1 62.7 +#> 7 1 1 1 10.5 +#> 8 1 1 1 -101. +#> 9 1 1 1 19.6 +#> 10 1 1 1 35.7 +#> # ... with 170 more rows
# linear model (`broom` will be used) lm.mod <- lm(Reaction ~ Days, sleepstudy) -broomExtra::augment(lm.mod)
#> # A tibble: 180 x 8 +broomExtra::augment(lm.mod)
#> # A tibble: 180 x 8 #> Reaction Days .fitted .resid .std.resid .hat .sigma .cooksd -#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 250. 0 251. -1.85 -0.0390 0.0192 47.8 0.0000149 -#> 2 259. 1 262. -3.17 -0.0669 0.0138 47.8 0.0000313 -#> 3 251. 2 272. -21.5 -0.454 0.00976 47.8 0.00101 -#> 4 321. 3 283. 38.6 0.813 0.00707 47.8 0.00235 -#> 5 357. 4 293. 63.6 1.34 0.00572 47.6 0.00514 -#> 6 415. 5 304. 111. 2.33 0.00572 47.1 0.0157 -#> 7 382. 6 314. 68.0 1.43 0.00707 47.6 0.00728 -#> 8 290. 7 325. -34.5 -0.727 0.00976 47.8 0.00261 -#> 9 431. 8 335. 95.4 2.01 0.0138 47.3 0.0284 -#> 10 466. 9 346. 121. 2.56 0.0192 47.0 0.0639 -#> # ... with 170 more rows
+#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 250. 0 251. -1.85 -0.0390 0.0192 47.8 0.0000149 +#> 2 259. 1 262. -3.17 -0.0669 0.0138 47.8 0.0000313 +#> 3 251. 2 272. -21.5 -0.454 0.00976 47.8 0.00101 +#> 4 321. 3 283. 38.6 0.813 0.00707 47.8 0.00235 +#> 5 357. 4 293. 63.6 1.34 0.00572 47.6 0.00514 +#> 6 415. 5 304. 111. 2.33 0.00572 47.1 0.0157 +#> 7 382. 6 314. 68.0 1.43 0.00707 47.6 0.00728 +#> 8 290. 7 325. -34.5 -0.727 0.00976 47.8 0.00261 +#> 9 431. 8 335. 95.4 2.01 0.0138 47.3 0.0284 +#> 10 466. 9 346. 121. 2.56 0.0192 47.0 0.0639 +#> # ... with 170 more rows
@@ -167,13 +167,13 @@

Examp mod <- stats::lm(formula = wt ~ am * cyl, data = mtcars) # `tidy`-fied output -easystats_to_tidy_names(parameters::model_parameters(mod))
#> # A tibble: 4 x 8 +easystats_to_tidy_names(parameters::model_parameters(mod))
#> # A tibble: 4 x 8 #> term estimate std.error conf.low conf.high statistic df.error p.value -#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <int> <dbl> -#> 1 (Intercept) 1.66 0.587 0.455 2.86 2.82 28 0.00864 -#> 2 am -0.956 0.793 -2.58 0.668 -1.21 28 0.238 -#> 3 cyl 0.304 0.0826 0.135 0.473 3.68 28 0.000989 -#> 4 am:cyl 0.0328 0.130 -0.234 0.300 0.252 28 0.803
+#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <int> <dbl> +#> 1 (Intercept) 1.66 0.587 0.455 2.86 2.82 28 0.00864 +#> 2 am -0.956 0.793 -2.58 0.668 -1.21 28 0.238 +#> 3 cyl 0.304 0.0826 0.135 0.473 3.68 28 0.000989 +#> 4 am:cyl 0.0328 0.130 -0.234 0.300 0.252 28 0.803 @@ -255,19 +255,19 @@

Examp # mixed-effects models (`broom.mixed` will be used) lmm.mod <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy) -broomExtra::glance(lmm.mod)
#> # A tibble: 1 x 6 +broomExtra::glance(lmm.mod)
#> # A tibble: 1 x 6 #> sigma logLik AIC BIC REMLcrit df.residual -#> <dbl> <dbl> <dbl> <dbl> <dbl> <int> -#> 1 25.6 -872. 1756. 1775. 1744. 174
+#> <dbl> <dbl> <dbl> <dbl> <dbl> <int> +#> 1 25.6 -872. 1756. 1775. 1744. 174
# linear model (`broom` will be used) lm.mod <- lm(Reaction ~ Days, sleepstudy) -broomExtra::glance(lm.mod)
#> # A tibble: 1 x 12 +broomExtra::glance(lm.mod)
#> # A tibble: 1 x 12 #> r.squared adj.r.squared sigma statistic p.value df logLik AIC BIC -#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 0.286 0.282 47.7 71.5 9.89e-15 1 -950. 1906. 1916. +#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 0.286 0.282 47.7 71.5 9.89e-15 1 -950. 1906. 1916. #> deviance df.residual nobs -#> <dbl> <int> <int> -#> 1 405252. 178 180
+#> <dbl> <int> <int> +#> 1 405252. 178 180 @@ -170,13 +170,13 @@

Details

Examples

set.seed(123) mod <- lm(mpg ~ wt + cyl, data = mtcars) -broomExtra::glance_performance(mod)
#> # A tibble: 1 x 13 +broomExtra::glance_performance(mod)
#> # A tibble: 1 x 13 #> r.squared adj.r.squared sigma statistic p.value df loglik aic bic -#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 0.830 0.819 2.57 70.9 6.81e-12 2 -74.0 156. 162. +#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 0.830 0.819 2.57 70.9 6.81e-12 2 -74.0 156. 162. #> deviance df.residual nobs rmse -#> <dbl> <int> <int> <dbl> -#> 1 191. 29 32 2.44
+#> <dbl> <int> <int> <dbl> +#> 1 191. 29 32 2.44 @@ -250,32 +250,32 @@

Examp ..f = stats::lm, na.action = na.omit, augment.args = list(se_fit = TRUE) -)
#> # A tibble: 26,970 x 11 +)
#> # A tibble: 26,970 x 11 #> cut color price carat .fitted .se.fit .resid .std.resid .hat .sigma -#> <ord> <ord> <int> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 Fair D 1323 0.5 2623. 104. -1300. -0.701 0.00311 1862. -#> 2 Fair D 3382 0.9 4722. 186. -1340. -0.725 0.0101 1862. -#> 3 Fair D 675 0.42 2203. 87.0 -1528. -0.824 0.00220 1860. -#> 4 Fair D 8716 1.01 5299. 209. 3417. 1.85 0.0127 1829. -#> 5 Fair D 1806 0.7 3672. 145. -1866. -1.01 0.00610 1856. -#> 6 Fair D 3304 1 5246. 207. -1942. -1.05 0.0125 1855. -#> 7 Fair D 4751 1.01 5299. 209. -548. -0.297 0.0127 1867. -#> 8 Fair D 3296 0.7 3672. 145. -376. -0.203 0.00610 1867. -#> 9 Fair D 2518 0.76 3987. 157. -1469. -0.794 0.00719 1861. -#> 10 Fair D 10562 1 5246. 207. 5316. 2.88 0.0125 1773. +#> <ord> <ord> <int> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 Fair D 1323 0.5 2623. 104. -1300. -0.701 0.00311 1862. +#> 2 Fair D 3382 0.9 4722. 186. -1340. -0.725 0.0101 1862. +#> 3 Fair D 675 0.42 2203. 87.0 -1528. -0.824 0.00220 1860. +#> 4 Fair D 8716 1.01 5299. 209. 3417. 1.85 0.0127 1829. +#> 5 Fair D 1806 0.7 3672. 145. -1866. -1.01 0.00610 1856. +#> 6 Fair D 3304 1 5246. 207. -1942. -1.05 0.0125 1855. +#> 7 Fair D 4751 1.01 5299. 209. -548. -0.297 0.0127 1867. +#> 8 Fair D 3296 0.7 3672. 145. -376. -0.203 0.00610 1867. +#> 9 Fair D 2518 0.76 3987. 157. -1469. -0.794 0.00719 1861. +#> 10 Fair D 10562 1 5246. 207. 5316. 2.88 0.0125 1773. #> .cooksd -#> <dbl> -#> 1 0.00154 -#> 2 0.00536 -#> 3 0.00150 -#> 4 0.0442 -#> 5 0.00624 -#> 6 0.0140 -#> 7 0.00113 -#> 8 0.000254 -#> 9 0.00457 -#> 10 0.105 -#> # ... with 26,960 more rows
+#> <dbl> +#> 1 0.00154 +#> 2 0.00536 +#> 3 0.00150 +#> 4 0.0442 +#> 5 0.00624 +#> 6 0.0140 +#> 7 0.00113 +#> 8 0.000254 +#> 9 0.00457 +#> 10 0.105 +#> # ... with 26,960 more rows
# linear mixed effects model broomExtra::grouped_augment( data = dplyr::sample_frac(tbl = ggplot2::diamonds, size = 0.5), @@ -283,32 +283,32 @@

Examp ..f = lme4::lmer, formula = price ~ carat + (carat | color) - 1, control = lme4::lmerControl(optimizer = "bobyqa") -)

#> # A tibble: 26,970 x 15 +)
#> # A tibble: 26,970 x 15 #> cut price carat color .fitted .resid .hat .cooksd .fixed .mu -#> <ord> <int> <dbl> <ord> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 Fair 2848 0.75 D 3144. -296. 0.0117 0.000313 2850. 3144. -#> 2 Fair 5268 1.5 J 5765. -497. 0.0145 0.00110 5699. 5765. -#> 3 Fair 4205 1.01 D 4994. -789. 0.0108 0.00206 3838. 4994. -#> 4 Fair 1633 0.68 G 2226. -593. 0.00915 0.000978 2584. 2226. -#> 5 Fair 3975 1 F 4426. -451. 0.00640 0.000394 3800. 4426. -#> 6 Fair 3876 1.03 E 4665. -789. 0.0110 0.00210 3914. 4665. -#> 7 Fair 4072 1.01 G 4229. -157. 0.00576 0.0000430 3838. 4229. -#> 8 Fair 527 0.37 F 83.3 444. 0.0172 0.00105 1406. 83.3 -#> 9 Fair 15030 2.48 I 12504. 2526. 0.104 0.247 9423. 12504. -#> 10 Fair 4791 1.01 F 4495. 296. 0.00646 0.000171 3838. 4495. +#> <ord> <int> <dbl> <ord> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 Fair 2848 0.75 D 3144. -296. 0.0117 0.000313 2850. 3144. +#> 2 Fair 5268 1.5 J 5765. -497. 0.0145 0.00110 5699. 5765. +#> 3 Fair 4205 1.01 D 4994. -789. 0.0108 0.00206 3838. 4994. +#> 4 Fair 1633 0.68 G 2226. -593. 0.00915 0.000978 2584. 2226. +#> 5 Fair 3975 1 F 4426. -451. 0.00640 0.000394 3800. 4426. +#> 6 Fair 3876 1.03 E 4665. -789. 0.0110 0.00210 3914. 4665. +#> 7 Fair 4072 1.01 G 4229. -157. 0.00576 0.0000430 3838. 4229. +#> 8 Fair 527 0.37 F 83.3 444. 0.0172 0.00105 1406. 83.3 +#> 9 Fair 15030 2.48 I 12504. 2526. 0.104 0.247 9423. 12504. +#> 10 Fair 4791 1.01 F 4495. 296. 0.00646 0.000171 3838. 4495. #> .offset .sqrtXwt .sqrtrwt .weights .wtres -#> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 0 1 1 1 -296. -#> 2 0 1 1 1 -497. -#> 3 0 1 1 1 -789. -#> 4 0 1 1 1 -593. -#> 5 0 1 1 1 -451. -#> 6 0 1 1 1 -789. -#> 7 0 1 1 1 -157. -#> 8 0 1 1 1 444. -#> 9 0 1 1 1 2526. -#> 10 0 1 1 1 296. -#> # ... with 26,960 more rows
+#> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 0 1 1 1 -296. +#> 2 0 1 1 1 -497. +#> 3 0 1 1 1 -789. +#> 4 0 1 1 1 -593. +#> 5 0 1 1 1 -451. +#> 6 0 1 1 1 -789. +#> 7 0 1 1 1 -157. +#> 8 0 1 1 1 444. +#> 9 0 1 1 1 2526. +#> 10 0 1 1 1 296. +#> # ... with 26,960 more rows @@ -267,32 +267,32 @@

Examp formula = price ~ carat - 1, ..f = stats::lm, na.action = na.omit -)
#> # A tibble: 35 x 14 +)
#> # A tibble: 35 x 14 #> cut color r.squared adj.r.squared sigma statistic p.value df logLik -#> <ord> <ord> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 Fair D 0.884 0.883 1857. NA NA NA -760. -#> 2 Fair E 0.876 0.875 1370. NA NA NA -872. -#> 3 Fair F 0.874 0.873 1989. NA NA NA -1406. -#> 4 Fair G 0.849 0.848 2138. NA NA NA -1444. -#> 5 Fair H 0.876 0.875 2412. NA NA NA -1307. -#> 6 Fair I 0.915 0.914 1499. NA NA NA -698. -#> 7 Fair J 0.885 0.883 2189. NA NA NA -501. -#> 8 Good D 0.860 0.860 1729. NA NA NA -2981. -#> 9 Good E 0.870 0.870 1674. NA NA NA -4084. -#> 10 Good F 0.873 0.873 1677. NA NA NA -3997. +#> <ord> <ord> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 Fair D 0.884 0.883 1857. NA NA NA -760. +#> 2 Fair E 0.876 0.875 1370. NA NA NA -872. +#> 3 Fair F 0.874 0.873 1989. NA NA NA -1406. +#> 4 Fair G 0.849 0.848 2138. NA NA NA -1444. +#> 5 Fair H 0.876 0.875 2412. NA NA NA -1307. +#> 6 Fair I 0.915 0.914 1499. NA NA NA -698. +#> 7 Fair J 0.885 0.883 2189. NA NA NA -501. +#> 8 Good D 0.860 0.860 1729. NA NA NA -2981. +#> 9 Good E 0.870 0.870 1674. NA NA NA -4084. +#> 10 Good F 0.873 0.873 1677. NA NA NA -3997. #> AIC BIC deviance df.residual nobs -#> <dbl> <dbl> <dbl> <int> <int> -#> 1 1524. 1529. 289568733. 84 85 -#> 2 1749. 1754. 187724139. 100 101 -#> 3 2816. 2822. 613473518. 155 156 -#> 4 2893. 2899. 722351124. 158 159 -#> 5 2618. 2624. 820050299. 141 142 -#> 6 1400. 1405. 177605917. 79 80 -#> 7 1005. 1009. 258660541. 54 55 -#> 8 5966. 5974. 1001144317. 335 336 -#> 9 8173. 8181. 1291712250. 461 462 -#> 10 7998. 8006. 1267954026. 451 452 -#> # ... with 25 more rows
+#> <dbl> <dbl> <dbl> <int> <int> +#> 1 1524. 1529. 289568733. 84 85 +#> 2 1749. 1754. 187724139. 100 101 +#> 3 2816. 2822. 613473518. 155 156 +#> 4 2893. 2899. 722351124. 158 159 +#> 5 2618. 2624. 820050299. 141 142 +#> 6 1400. 1405. 177605917. 79 80 +#> 7 1005. 1009. 258660541. 54 55 +#> 8 5966. 5974. 1001144317. 335 336 +#> 9 8173. 8181. 1291712250. 461 462 +#> 10 7998. 8006. 1267954026. 451 452 +#> # ... with 25 more rows
# linear mixed effects model broomExtra::grouped_glance( data = dplyr::sample_frac(tbl = ggplot2::diamonds, size = 0.5), @@ -300,14 +300,14 @@

Examp ..f = lme4::lmer, formula = price ~ carat + (carat | color) - 1, control = lme4::lmerControl(optimizer = "bobyqa") -)

#> # A tibble: 5 x 7 +)
#> # A tibble: 5 x 7 #> cut sigma logLik AIC BIC REMLcrit df.residual -#> <ord> <dbl> <dbl> <dbl> <dbl> <dbl> <int> -#> 1 Fair 1830. -7257. 14525. 14548. 14515. 806 -#> 2 Good 1373. -21027. 42064. 42093. 42054. 2425 -#> 3 Very Good 1362. -51577. 103165. 103198. 103155. 5964 -#> 4 Premium 1557. -60736. 121482. 121516. 121472. 6917 -#> 5 Ideal 1257. -92766. 185542. 185579. 185532. 10833
+#> <ord> <dbl> <dbl> <dbl> <dbl> <dbl> <int> +#> 1 Fair 1830. -7257. 14525. 14548. 14515. 806 +#> 2 Good 1373. -21027. 42064. 42093. 42054. 2425 +#> 3 Very Good 1362. -51577. 103165. 103198. 103155. 5964 +#> 4 Premium 1557. -60736. 121482. 121516. 121472. 6917 +#> 5 Ideal 1257. -92766. 185542. 185579. 185532. 10833 @@ -323,20 +323,20 @@

Examp ..f = stats::lm, na.action = na.omit, tidy.args = list(quick = TRUE) -)
#> # A tibble: 35 x 7 +)
#> # A tibble: 35 x 7 #> cut color term estimate std.error statistic p.value -#> <ord> <ord> <chr> <dbl> <dbl> <dbl> <dbl> -#> 1 Fair D carat 5246. 207. 25.3 4.45e- 41 -#> 2 Fair E carat 4202. 158. 26.6 3.52e- 47 -#> 3 Fair F carat 4877. 149. 32.7 1.68e- 71 -#> 4 Fair G carat 4538. 152. 29.8 1.03e- 66 -#> 5 Fair H carat 4620. 146. 31.6 7.68e- 66 -#> 6 Fair I carat 3969. 136. 29.2 4.86e- 44 -#> 7 Fair J carat 4024. 197. 20.4 4.80e- 27 -#> 8 Good D carat 5207. 115. 45.4 2.66e-145 -#> 9 Good E carat 5102. 91.9 55.5 2.50e-206 -#> 10 Good F carat 5151. 92.4 55.8 1.76e-204 -#> # ... with 25 more rows
+#> <ord> <ord> <chr> <dbl> <dbl> <dbl> <dbl> +#> 1 Fair D carat 5246. 207. 25.3 4.45e- 41 +#> 2 Fair E carat 4202. 158. 26.6 3.52e- 47 +#> 3 Fair F carat 4877. 149. 32.7 1.68e- 71 +#> 4 Fair G carat 4538. 152. 29.8 1.03e- 66 +#> 5 Fair H carat 4620. 146. 31.6 7.68e- 66 +#> 6 Fair I carat 3969. 136. 29.2 4.86e- 44 +#> 7 Fair J carat 4024. 197. 20.4 4.80e- 27 +#> 8 Good D carat 5207. 115. 45.4 2.66e-145 +#> 9 Good E carat 5102. 91.9 55.5 2.50e-206 +#> 10 Good F carat 5151. 92.4 55.8 1.76e-204 +#> # ... with 25 more rows
# linear mixed effects model broomExtra::grouped_tidy( data = dplyr::sample_frac(tbl = ggplot2::diamonds, size = 0.5), @@ -345,32 +345,32 @@

Examp formula = price ~ carat + (carat | color) - 1, control = lme4::lmerControl(optimizer = "bobyqa"), tidy.args = list(conf.int = TRUE, conf.level = 0.99) -)

#> # A tibble: 25 x 9 +)
#> # A tibble: 25 x 9 #> cut effect group term estimate std.error statistic -#> <ord> <chr> <chr> <chr> <dbl> <dbl> <dbl> -#> 1 Fair fixed NA carat 3800. 228. 16.7 -#> 2 Fair ran_pars color sd__(Intercept) 2158. NA NA -#> 3 Fair ran_pars color cor__(Intercept).carat -0.975 NA NA -#> 4 Fair ran_pars color sd__carat 2545. NA NA -#> 5 Fair ran_pars Residual sd__Observation 1830. NA NA -#> 6 Good fixed NA carat 9217. 105. 87.6 -#> 7 Good ran_pars color sd__(Intercept) 2686. NA NA -#> 8 Good ran_pars color cor__(Intercept).carat 0.998 NA NA -#> 9 Good ran_pars color sd__carat 1609. NA NA -#> 10 Good ran_pars Residual sd__Observation 1373. NA NA +#> <ord> <chr> <chr> <chr> <dbl> <dbl> <dbl> +#> 1 Fair fixed NA carat 3800. 228. 16.7 +#> 2 Fair ran_pars color sd__(Intercept) 2158. NA NA +#> 3 Fair ran_pars color cor__(Intercept).carat -0.975 NA NA +#> 4 Fair ran_pars color sd__carat 2545. NA NA +#> 5 Fair ran_pars Residual sd__Observation 1830. NA NA +#> 6 Good fixed NA carat 9217. 105. 87.6 +#> 7 Good ran_pars color sd__(Intercept) 2686. NA NA +#> 8 Good ran_pars color cor__(Intercept).carat 0.998 NA NA +#> 9 Good ran_pars color sd__carat 1609. NA NA +#> 10 Good ran_pars Residual sd__Observation 1373. NA NA #> conf.low conf.high -#> <dbl> <dbl> -#> 1 3212. 4387. -#> 2 NA NA -#> 3 NA NA -#> 4 NA NA -#> 5 NA NA -#> 6 8946. 9488. -#> 7 NA NA -#> 8 NA NA -#> 9 NA NA -#> 10 NA NA -#> # ... with 15 more rows
+#> <dbl> <dbl> +#> 1 3212. 4387. +#> 2 NA NA +#> 3 NA NA +#> 4 NA NA +#> 5 NA NA +#> 6 8946. 9488. +#> 7 NA NA +#> 8 NA NA +#> 9 NA NA +#> 10 NA NA +#> # ... with 15 more rows diff --git a/docs/reference/reexports.html b/docs/reference/reexports.html index 15a5a8c..e23b9ee 100644 --- a/docs/reference/reexports.html +++ b/docs/reference/reexports.html @@ -95,7 +95,7 @@ broomExtra - 4.0.3.9000 + 4.0.4 diff --git a/docs/reference/tidy.html b/docs/reference/tidy.html index 305b0cd..d59ff37 100644 --- a/docs/reference/tidy.html +++ b/docs/reference/tidy.html @@ -91,7 +91,7 @@ broomExtra - 4.0.3.9000 + 4.0.4 @@ -306,18 +306,18 @@

Examp # mixed-effects models (`broom.mixed` will be used) lmm.mod <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy) -broomExtra::tidy(x = lmm.mod, effects = "fixed", exponentiate = TRUE)
#> # A tibble: 2 x 5 +broomExtra::tidy(x = lmm.mod, effects = "fixed", exponentiate = TRUE)
#> # A tibble: 2 x 5 #> effect term estimate std.error statistic -#> <chr> <chr> <dbl> <dbl> <dbl> -#> 1 fixed (Intercept) 1.53e109 1.04e110 36.8 -#> 2 fixed Days 3.51e 4 5.43e 4 6.77
+#> <chr> <chr> <dbl> <dbl> <dbl> +#> 1 fixed (Intercept) 1.53e109 1.04e110 36.8 +#> 2 fixed Days 3.51e 4 5.43e 4 6.77
# linear model (`broom` will be used) lm.mod <- lm(Reaction ~ Days, sleepstudy) -broomExtra::tidy(x = lm.mod, conf.int = TRUE)
#> # A tibble: 2 x 7 +broomExtra::tidy(x = lm.mod, conf.int = TRUE)
#> # A tibble: 2 x 7 #> term estimate std.error statistic p.value conf.low conf.high -#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 (Intercept) 251. 6.61 38.0 2.16e-87 238. 264. -#> 2 Days 10.5 1.24 8.45 9.89e-15 8.02 12.9
+#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 (Intercept) 251. 6.61 38.0 2.16e-87 238. 264. +#> 2 Days 10.5 1.24 8.45 9.89e-15 8.02 12.9
# unsupported object (the function will return `NULL` in such cases) broomExtra::tidy(list(1, c("x", "y")))
#> NULL
diff --git a/docs/reference/tidy_parameters.html b/docs/reference/tidy_parameters.html index 1afd175..f1ee386 100644 --- a/docs/reference/tidy_parameters.html +++ b/docs/reference/tidy_parameters.html @@ -88,7 +88,7 @@ broomExtra - 4.0.3.9000 + 4.0.4 @@ -174,12 +174,12 @@

Details

Examples

set.seed(123) mod <- lm(mpg ~ wt + cyl, data = mtcars) -broomExtra::tidy_parameters(mod)
#> # A tibble: 3 x 8 +broomExtra::tidy_parameters(mod)
#> # A tibble: 3 x 8 #> term estimate std.error conf.low conf.high statistic df.error p.value -#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <int> <dbl> -#> 1 (Intercept) 39.7 1.71 36.2 43.2 23.1 29 3.04e-20 -#> 2 wt -3.19 0.757 -4.74 -1.64 -4.22 29 2.22e- 4 -#> 3 cyl -1.51 0.415 -2.36 -0.660 -3.64 29 1.06e- 3
+#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <int> <dbl> +#> 1 (Intercept) 39.7 1.71 36.2 43.2 23.1 29 3.04e-20 +#> 2 wt -3.19 0.757 -4.74 -1.64 -4.22 29 2.22e- 4 +#> 3 cyl -1.51 0.415 -2.36 -0.660 -3.64 29 1.06e- 3