Codebase list r-cran-broom / 1a989ec
New upstream version 1.0.2+dfsg Andreas Tille 1 year, 4 months ago
143 changed file(s) with 671 addition(s) and 723 deletion(s). Raw diff Collapse all Expand all
00 Type: Package
11 Package: broom
22 Title: Convert Statistical Objects into Tidy Tibbles
3 Version: 1.0.1
3 Version: 1.0.2
44 Authors@R:
55 c(person(given = "David",
66 family = "Robinson",
337337 family = "Hester",
338338 role = "ctb",
339339 email = "jim.hester@rstudio.com"),
340 person(given = "Cory",
341 family = "Brunson",
342 role = "ctb",
343 email = "cornelioid@gmail.com"),
344340 person(given = "Ben",
345341 family = "Schneider",
346342 role = "ctb",
544540 Depends: R (>= 3.1)
545541 Imports: backports, dplyr (>= 1.0.0), ellipsis, generics (>= 0.0.2),
546542 glue, purrr, rlang, stringr, tibble (>= 3.0.0), tidyr (>=
547 1.0.0), ggplot2
543 1.0.0)
548544 Suggests: AER, AUC, bbmle, betareg, biglm, binGroup, boot, btergm (>=
549545 1.10.6), car, carData, caret, cluster, cmprsk, coda, covr, drc,
550546 e1071, emmeans, epiR, ergm (>= 3.10.4), fixest (>= 0.9.0), gam
551 (>= 1.15), gee, geepack, glmnet, glmnetUtils, gmm, Hmisc,
552 irlba, interp, joineRML, Kendall, knitr, ks, Lahman, lavaan,
553 leaps, lfe, lm.beta, lme4, lmodel2, lmtest (>= 0.9.38),
547 (>= 1.15), gee, geepack, ggplot2, glmnet, glmnetUtils, gmm,
548 Hmisc, irlba, interp, joineRML, Kendall, knitr, ks, Lahman,
549 lavaan, leaps, lfe, lm.beta, lme4, lmodel2, lmtest (>= 0.9.38),
554550 lsmeans, maps, maptools, margins, MASS, mclust, mediation,
555551 metafor, mfx, mgcv, mlogit, modeldata, modeltests, muhaz,
556552 multcomp, network, nnet, orcutt (>= 2.2), ordinal, plm, poLCA,
607603 'systemfit-tidiers.R' 'tseries-tidiers.R' 'utilities.R'
608604 'vars-tidiers.R' 'zoo-tidiers.R' 'zzz.R'
609605 NeedsCompilation: no
610 Packaged: 2022-08-29 19:41:53 UTC; simoncouch
606 Packaged: 2022-12-14 15:57:36 UTC; simoncouch
611607 Author: David Robinson [aut],
612608 Alex Hayes [aut] (<https://orcid.org/0000-0002-4985-5160>),
613609 Simon Couch [aut, cre] (<https://orcid.org/0000-0001-5676-5107>),
690686 Sergio Oller [ctb],
691687 Luke Sonnet [ctb],
692688 Jim Hester [ctb],
693 Cory Brunson [ctb],
694689 Ben Schneider [ctb],
695690 Bernie Gray [ctb] (<https://orcid.org/0000-0001-9190-6032>),
696691 Mara Averick [ctb],
739734 Alex Reinhart [ctb] (<https://orcid.org/0000-0002-6658-514X>)
740735 Maintainer: Simon Couch <simonpatrickcouch@gmail.com>
741736 Repository: CRAN
742 Date/Publication: 2022-08-29 21:00:08 UTC
737 Date/Publication: 2022-12-15 13:10:20 UTC
+147
-148
MD5 less more
0 9190afa3ae7efa6fc12a98afb28dd301 *DESCRIPTION
0 0237b8802fae5c64386d2019e804599e *DESCRIPTION
11 10390b90ea27c186e1fe37138085bd25 *LICENSE
22 cf43a69ce1557ab94bce3afdf18a4738 *NAMESPACE
3 27d7c89b6e661378805bdbdb6a6a7b14 *NEWS.md
3 e22780bd4d34d39a733b29e084226076 *NEWS.md
44 303a2e66bc5febc2a128d8600a94ad75 *R/aaa-documentation-helper.R
55 fb52af46a21b958f646559b3f6831219 *R/aer-tidiers.R
6 830a3da844ebb64683b3b3c6627b7dc8 *R/auc-tidiers.R
6 9cb2e33b3554fed23bff78b9ebec8f6e *R/auc-tidiers.R
77 f64bdbd4790ac88f9580d655629b97e2 *R/base-tidiers.R
88 54137e8597cac1d77d394a66dfe8921c *R/bbmle-tidiers.R
99 db5094671c331548e3ff4591ea50c730 *R/betareg-tidiers.R
1010 667a019087e982a1f111f7b82e0dba4f *R/biglm-tidiers.R
11 c516e7a790bb15f010d42756a6dcd7f5 *R/bingroup-tidiers.R
11 11f8090ba3e09293147d24b67c0c0c55 *R/bingroup-tidiers.R
1212 43366f850d226756e0c2463c1002f38c *R/boot-tidiers.R
13 32de1e01fc126b3911b1430aa507ce10 *R/broom-package.R
13 50aada59e0d2193beee7080ec88c95bd *R/broom-package.R
1414 2fd0e39201b54a9a5feb244209a1ba68 *R/broom.R
1515 bd2d2f35f9c5d0ae7051c4aeb1ccbf1c *R/btergm-tidiers.R
1616 3db3452c708326b444785cfbbbb00363 *R/car-tidiers.R
1717 910ef33ff34552050efe859c49f35088 *R/caret-tidiers.R
18 54594ed3d087aab7651ed48143496ae0 *R/cluster-tidiers.R
18 6a55afa60985acd02128403db532c202 *R/cluster-tidiers.R
1919 8043cf4f5bfdb4d570f803d89414b9c5 *R/cmprsk-tidiers.R
2020 42991549c661e71ab7f79909d47aff25 *R/data-frame-tidiers.R
21 64a0c5e1000065bef864b9bfa938dc12 *R/deprecated-0-7-0.R
21 a418461273dd31bf0d97ed76fb91ee3a *R/deprecated-0-7-0.R
2222 705d2ced3341675bdc6f6c5fe39c9e65 *R/drc-tidiers.R
23 0adfd9b3a3813ba81a089790ea2b51a8 *R/emmeans-tidiers.R
23 d02c821ba521e0d608b8e4be6d35c7f5 *R/emmeans-tidiers.R
2424 9b4c8b4667fe722b478a4f168e46a381 *R/epiR-tidiers.R
2525 1573224ecbb4471b3097a6aebf1dff00 *R/ergm-tidiers.R
26 7cf6c4aa9b063f0817fa935300de3486 *R/fixest-tidiers.R
26 471000837e4cd0604114d4abf33d5042 *R/fixest-tidiers.R
2727 f3814a0bce84e5e3624d973fcd6b0381 *R/gam-tidiers.R
2828 6535596a536b715ca01aecf11bc65138 *R/geepack-tidiers.R
29 f848d5c3c6b202f7ebb41eae4322c331 *R/glmnet-cv-glmnet-tidiers.R
30 3d652ad1a1aa60af091707ea277bb6bc *R/glmnet-glmnet-tidiers.R
31 f6c8ba6a2c7f0762f2e195fc96f7a325 *R/gmm-tidiers.R
32 a6e4f2e09395f3c42b2682447d20cf76 *R/hmisc-tidiers.R
29 d4c5f07d4b4806cf0ea3b2d3f424143e *R/glmnet-cv-glmnet-tidiers.R
30 a44ef472bdc265529a7f8b0a69a34e48 *R/glmnet-glmnet-tidiers.R
31 9db95fc0e23a43c754ca4015d7e660d7 *R/gmm-tidiers.R
32 84dc60612b5c0e426da75350373fc5a0 *R/hmisc-tidiers.R
3333 32f7616ff60f46f8cd923a0be66881c3 *R/joinerml-tidiers.R
3434 b9752e96931d7bc0ecdfffc0a5f5974e *R/kendall-tidiers.R
35 1d7723329dedd2f0ed80b2d1160ed864 *R/ks-tidiers.R
35 f44c97f20f55c502851cc933d75ca615 *R/ks-tidiers.R
3636 ad7d2eb41b3cfcdd30e504cab620329c *R/lavaan-tidiers.R
3737 c477b7ed6d9cff0864481e0533858333 *R/leaps-tidiers.R
3838 0d15d4f1ab3f1e64f189df34251f39ac *R/lfe-tidiers.R
3939 7cf58ac01016d4ead87b6e8e69929101 *R/list-irlba.R
4040 0db2e0087a8b5ec57366491eecc0ead4 *R/list-optim-tidiers.R
41 dca4c38dfb227ddad678ffffba2345ce *R/list-svd-tidiers.R
41 dcc1092f69ef8472d9e373aed0a86460 *R/list-svd-tidiers.R
4242 ca2ffc8f8e0ef26872fe21152a595351 *R/list-tidiers.R
4343 c461267e9e7bdf98f08b37f1e637f36c *R/list-xyz-tidiers.R
4444 4d7667b9525337c6b55cf67216e5ef3f *R/lm-beta-tidiers.R
45 9ecad7423b12fcb0af05b3128d100e8c *R/lmodel2-tidiers.R
45 fed78dc462419f83b27c4232e25389ab *R/lmodel2-tidiers.R
4646 8772b5b2252b10be07ee35afb725b9bb *R/lmtest-tidiers.R
47 91669ad5121496878640995d6cce06d8 *R/maps-tidiers.R
48 26ee81f61b69bcbbed6c617d1a49726c *R/margins-tidiers.R
47 e6b5c4777cdc58adce44813139dad2a7 *R/maps-tidiers.R
48 91988e49eea1de0df83a58aa2ba8f545 *R/margins-tidiers.R
4949 a2a64a3c5ab335663c15cf9af9977082 *R/mass-fitdistr-tidiers.R
5050 78ee805f323377c55d86ddfca3bb0546 *R/mass-negbin-tidiers.R
5151 56bb672eee6db52b7e880d839df39f3a *R/mass-polr-tidiers.R
52 d0beba4085b3c668edbfb69351ce58a9 *R/mass-ridgelm-tidiers.R
52 20f332928bc164e61c5c4f5a626f5cab *R/mass-ridgelm-tidiers.R
5353 1d39c424bc5705bce1bb8ab144713951 *R/mass-rlm-tidiers.R
5454 02ed2982c81646362ff2eddc2ea02365 *R/mclust-tidiers.R
5555 b63d90b6589dfd6d94efa492da89e30b *R/mediation-tidiers.R
5858 477741ae94592f3be7d2948b72c21c11 *R/mgcv-tidiers.R
5959 69f69e163acc58506bc60c6e7b697204 *R/mlogit-tidiers.R
6060 c09adb63eabdcd356f07c8f8d1b1b068 *R/muhaz-tidiers.R
61 968668988a0d3fcb887e2bae00d50f31 *R/multcomp-tidiers.R
61 a67198372c2fb969bade5bd2aab12c1c *R/multcomp-tidiers.R
6262 6444f84ecfa5db755946726adbdd5edf *R/nnet-tidiers.R
6363 35fab3dea6564c591c12aa5e186dd325 *R/nobs.R
6464 f2c28c80dcd7de65ff45d7088b10d6f2 *R/null-and-default-tidiers.R
6666 c883cfcc49c026c6b10a7c6bcae38af1 *R/ordinal-clm-tidiers.R
6767 88674857b3858a357e71656777b39bd2 *R/ordinal-clmm-tidiers.R
6868 3cdd3c056e8d2bdd2bf1c8f4439091d8 *R/plm-tidiers.R
69 16f9d5297942af46124c5a9038f5905c *R/polca-tidiers.R
70 ea7e1f5cd3d8122a344f1d5f9b8892f4 *R/psych-tidiers.R
69 00f8b2b8a6913de664eeed5c8fe9fd47 *R/polca-tidiers.R
70 dd02ca32c82eb1b7d9684c59f7bc8124 *R/psych-tidiers.R
7171 b845055da0fa580ec49897b5988e486b *R/quantreg-nlrq-tidiers.R
7272 e59a90e94d2385e4024bd45d09f808ba *R/quantreg-rq-tidiers.R
7373 e651cc373a18dcf7cffa4f0455273c21 *R/quantreg-rqs-tidiers.R
7979 7b92ea5f5f0fbe9cb63e2d9fb52b2b8f *R/spdep-tidiers.R
8080 73079c20cbdf79b4699d299fb87cf512 *R/speedglm-speedglm-tidiers.R
8181 1e26a1dfc040be705e7f3ab5fd00a111 *R/speedglm-speedlm-tidiers.R
82 60bb082a0d1039cefc6545922f84781e *R/stats-anova-tidiers.R
82 b0124fe7d56de3376ff96ca0584534aa *R/stats-anova-tidiers.R
8383 00cd246052fd5e04eaf4a095fbb7c29a *R/stats-arima-tidiers.R
84 4c1f76fbd818154c23d6a2312ac25edb *R/stats-decompose-tidiers.R
84 01d4f8b5c04d489d346438ed12fca6e4 *R/stats-decompose-tidiers.R
8585 9af3af0d331cf932c5492a579382a458 *R/stats-factanal-tidiers.R
8686 7e47bef6c903014949d459281f9adbb7 *R/stats-glm-tidiers.R
87 8eede361ce831f4c7b63fde8dbb2a485 *R/stats-htest-tidiers.R
87 441c8b6b94407e2c462ab95d49b4f38a *R/stats-htest-tidiers.R
8888 c5107a5b84d52685005dc45939145b6c *R/stats-kmeans-tidiers.R
89 539e0433407db9d30fefb09d04dbff31 *R/stats-lm-tidiers.R
89 dd208b459713a41aa2d0da0eaf00f57a *R/stats-lm-tidiers.R
9090 90524466e12d3bbff17c3be001ce5458 *R/stats-loess-tidiers.R
9191 e9bb4cd088d2886eb415ac26d7bcfa08 *R/stats-mlm-tidiers.R
92 8f39406fb3060794c37f44339180c4e6 *R/stats-nls-tidiers.R
93 91a4d3e4099fec4b74405841ff7caab1 *R/stats-prcomp-tidiers.R
94 caba965c8c4c20e47cbeec45e919986e *R/stats-smooth.spline-tidiers.R
92 c931fc861a1520afd6da9df9152ad075 *R/stats-nls-tidiers.R
93 60169e58aac61dee5853098113a96135 *R/stats-prcomp-tidiers.R
94 e5d558cd9981ba496555798fde9f4106 *R/stats-smooth.spline-tidiers.R
9595 d7274dfacab3312d67c73092d18c2eff *R/stats-summary-lm-tidiers.R
96 b372eb840dba6240a937563b43a5a8d9 *R/stats-time-series-tidiers.R
96 546ccab64ba312099f8e7618e8b01ce1 *R/stats-time-series-tidiers.R
9797 314ae116384986891d3ff383f683e591 *R/survey-tidiers.R
9898 d39b8e47789333bbb1a627bcb32475b8 *R/survival-aareg-tidiers.R
99 b0c40e4a2ae0e91842a09d6cccdfca4e *R/survival-cch-tidiers.R
100 714b9a6d9da4122ca351fcdc55948f3a *R/survival-coxph-tidiers.R
99 6b5402b57ad5e43f011f83a500c80318 *R/survival-cch-tidiers.R
100 a8ebc8b2d274715eaffc40c6898873ba *R/survival-coxph-tidiers.R
101101 51b820fd950f7ebecb8c3655b6fd6fab *R/survival-pyears-tidiers.R
102102 3d86a51a7ac96b3ec735b49094d15c2c *R/survival-survdiff-tidiers.R
103103 363cb66d4c36a1711509a44d6a7e8991 *R/survival-survexp-tidiers.R
104 88f79ff8589b060f6dfa66bde6883ee0 *R/survival-survfit-tidiers.R
105 8d763ae478f765144380e9ba51cef975 *R/survival-survreg-tidiers.R
104 9d87ad1df7d13666859549c220770e39 *R/survival-survfit-tidiers.R
105 516aab0ca1014e5fbfe2242b3d3d2f66 *R/survival-survreg-tidiers.R
106106 97b62478fb2f503e629d89c21b275394 *R/sysdata.rda
107107 3b564ed68ac161ace9d7cca0e335c226 *R/systemfit-tidiers.R
108108 02f365023a72b97aa1154636625880fe *R/tseries-tidiers.R
109 71e4dae11067f345465f59de16512477 *R/utilities.R
109 e4fcced9a028bc46841c69c5e148472e *R/utilities.R
110110 a9724d68f8737fb06229843e7b6d8bab *R/vars-tidiers.R
111 fe10b266c8ac720da34976fb43de8639 *R/zoo-tidiers.R
111 88935acc4c23a123d5313467af6ca677 *R/zoo-tidiers.R
112112 a1c1829b987daed614b734ae41c62bfe *R/zzz.R
113113 ba757dec676977ef193caf8a4153ee5f *README.md
114 90e0a418e2a3e3d8b51f3c4ab544120d *build/vignette.rds
114 1fff738b2799030f57e60182029090bd *build/vignette.rds
115115 58a96fb1e11f5ebe13122454aeef8c4c *inst/WORDLIST
116116 906ef10bdc07a57e4b0bf997068bf859 *inst/doc/adding-tidiers.Rmd
117 de50c989eaa6775d2b851c4efcf2195b *inst/doc/adding-tidiers.html
117 b6f6a778f2373abf51b459e1020493f1 *inst/doc/adding-tidiers.html
118118 608039f89a659160b4067d51cfa7c35b *inst/doc/available-methods.R
119119 ff8f69aaff51a387afb999c83d6fdcb6 *inst/doc/available-methods.Rmd
120 4dc912d0fdcb280671f2f8bbce3b8406 *inst/doc/available-methods.html
120 341bd2d1dc0e4cf48a0e9bf69382411b *inst/doc/available-methods.html
121121 adbf7acb18d623877d22e252593663d5 *inst/doc/bootstrapping.R
122122 e078805eb9f9c16e9c24b376f71ec778 *inst/doc/bootstrapping.Rmd
123 837652896a5cd0dfe6e29b349b7b1b9f *inst/doc/bootstrapping.html
123 eb421ec2134430b2f36d3606249c15f9 *inst/doc/bootstrapping.html
124124 2504b81a0fe78a3402ebe17716bab0ee *inst/doc/broom.R
125125 5092072954108fd18db2b727844a034e *inst/doc/broom.Rmd
126 d9591c4e9b2a6a95680e03c076358506 *inst/doc/broom.html
127 b1f7ea6798a70833ae71d044b69af1df *inst/doc/broom_and_dplyr.R
128 f6bd7233294809d0bfcd8eb4b6085cd6 *inst/doc/broom_and_dplyr.Rmd
129 29de6d5b751f92514cdb5df73a80eab7 *inst/doc/broom_and_dplyr.html
126 15501076e454cee435030a2a96e7ae9d *inst/doc/broom.html
127 2cde329db141c919216e01f1033b9df6 *inst/doc/broom_and_dplyr.R
128 127a6fe5a6336908d469904804c703dc *inst/doc/broom_and_dplyr.Rmd
129 8dd8fc80a2111e55b173656490c21e4a *inst/doc/broom_and_dplyr.html
130130 6fc83a2700fedd6988f437fc7fd6d6de *inst/doc/kmeans.Rmd
131 7f1562482cfb4a5cb7d8c1b5f7bc10c8 *inst/doc/kmeans.html
132 40b26d107531aee05bf2ecb0b834ae79 *man/augment.Mclust.Rd
133 38d4927bf4bc2ab41c36c976dc9cfb1f *man/augment.betamfx.Rd
134 574097d776ab8cb8a3618a4afc307e69 *man/augment.betareg.Rd
135 9d77fae24f27941274f8a76fb7f201de *man/augment.clm.Rd
136 cd971688f7967ba6569d8158530d38b6 *man/augment.coxph.Rd
137 116412e21a130d245c8f967dde16170d *man/augment.decomposed.ts.Rd
138 f01761289da8772db2b11b0247014f85 *man/augment.drc.Rd
139 e678fbdb18c7d1512ee06244d4cfedda *man/augment.factanal.Rd
140 be94c187f9ace49539137bc6ac01826f *man/augment.felm.Rd
141 afd2a9aa773f5f58bcf4bfa4d0f8950b *man/augment.fixest.Rd
142 3a71f9c6ba66a5262cd572abba28fb97 *man/augment.gam.Rd
143 6a1dc1ac39700279a889ff594b0ebb50 *man/augment.glm.Rd
144 fed10b98f1724366a68d6238104ea2b2 *man/augment.glmRob.Rd
145 857b686b025fc2b8b53aedf8ce1d205f *man/augment.htest.Rd
146 fc231fead1bb96bebdf9cb5731c2c7d5 *man/augment.ivreg.Rd
147 d3aee1a965e1383ba3b861acbbb09298 *man/augment.kmeans.Rd
148 388f6fca85b1f81e709f6c18ef247a4d *man/augment.lm.Rd
149 ebae066d77d33e6514a695bd24801e31 *man/augment.lmRob.Rd
131 d4360d098e6495c6fe042a337e6d9a06 *inst/doc/kmeans.html
132 acc12fe83e1677c531806366ce9a5815 *man/augment.Mclust.Rd
133 d5c0deb729d1e9f039bbc33cb18f854a *man/augment.betamfx.Rd
134 5dec7e5c88e1467852014406a659fd27 *man/augment.betareg.Rd
135 886dbd851525fcd463db9f829fcdf11c *man/augment.clm.Rd
136 6b80577ecbcd82cff2bb6494d5c29cea *man/augment.coxph.Rd
137 71041bca5f746f8076f80170c097d538 *man/augment.decomposed.ts.Rd
138 58e9afd6cba333a0e3b537a90e471270 *man/augment.drc.Rd
139 b8d876acc7e459e2e113d638d682a526 *man/augment.factanal.Rd
140 26646d2d9ce8ee1f14adee9a9c6fcddf *man/augment.felm.Rd
141 669cdd04243fb4ca0b2afe5db9add90d *man/augment.fixest.Rd
142 492207d86d157d2811db2e8682da30e6 *man/augment.gam.Rd
143 5c533c5ced160355f1ce05af8e1bac84 *man/augment.glm.Rd
144 ceaf6bcdd2e5d3f814a445a2c9f95e36 *man/augment.glmRob.Rd
145 5af47d02d36b878c8aa5b7fd31c49b43 *man/augment.htest.Rd
146 2c3bf2913d23585a3749778f230a6e3f *man/augment.ivreg.Rd
147 a5c655f567479e28108a83c62ecd52c6 *man/augment.kmeans.Rd
148 c4c4eb090853fb47b921cdd485b2a044 *man/augment.lm.Rd
149 f13f82e8f332d40a2b2b862d6104297e *man/augment.lmRob.Rd
150150 2812701bbbd246e19bc7c823704eac9b *man/augment.loess.Rd
151 e7ec292ebd4fda7d8ae07a40151ea5f0 *man/augment.mfx.Rd
152 9ae1a7a632044e69be0f924bcfc0a1e0 *man/augment.mjoint.Rd
153 e2d9a48d30f9d9ed5c7fc354671d4f71 *man/augment.mlogit.Rd
154 03b8865ad826743e5d2c729e5b53182c *man/augment.nlrq.Rd
155 41ae236ea1d48b90c38013b285a449c3 *man/augment.nls.Rd
156 6d49127edd0a3912120007208bb056e5 *man/augment.pam.Rd
157 905a1a5113682cf436f56b9ed4a31651 *man/augment.plm.Rd
158 7d178012295ef4569831d17cf4019d08 *man/augment.poLCA.Rd
159 5b4166e7c82816e784bb202118d62a6e *man/augment.polr.Rd
160 846f5390a807a92c49f98e5b43f64a71 *man/augment.prcomp.Rd
161 159643d6059ce3631b845b394ed15fed *man/augment.rlm.Rd
162 1c806b25efab0596d312850ca67affcd *man/augment.rma.Rd
163 d1708f8999395245a28227381f421848 *man/augment.robustbase.glmrob.Rd
164 de1958b1b6903eecd10d920e32e5ff2a *man/augment.robustbase.lmrob.Rd
165 899b6928245f07a157ef2ac8624ab1ab *man/augment.rq.Rd
166 8109e9ec746b7ece71a03af4f9183946 *man/augment.rqs.Rd
167 39bc01b4131025c0535794b524822070 *man/augment.sarlm.Rd
168 2da5a992839c270ea07c2d52f5d922b9 *man/augment.smooth.spline.Rd
169 627eedbc6e5aa3f9c9f62c42fe88baf9 *man/augment.speedlm.Rd
170 49f3e9be7d7518c3ad3f2f09c3f9e247 *man/augment.stl.Rd
171 79a7ea8bc2342264156c25c8b5aa7e80 *man/augment.survreg.Rd
151 c0730a349aac74f0729cb0c2f0293a05 *man/augment.mfx.Rd
152 dd21489e333fbe85dacacc36bbbd6359 *man/augment.mjoint.Rd
153 80a5cebb89d4fb57abce2e0c6f019ff2 *man/augment.mlogit.Rd
154 8b7d21e538dd1501d53fd802cd3fc77d *man/augment.nlrq.Rd
155 9b9515aeb3900f37587b849f82e2ece8 *man/augment.nls.Rd
156 5c5239d1345d70b43e78e111d4698506 *man/augment.pam.Rd
157 485bc4cdda5e86ee30262a90bef3b171 *man/augment.plm.Rd
158 8749a982be925fc517cbecd3f36d5745 *man/augment.poLCA.Rd
159 dfe8a4dad81e56c634bb952a78b275cd *man/augment.polr.Rd
160 ec3f089b4270af7965ac5f168a56774a *man/augment.prcomp.Rd
161 8265e540955dd3a8574d34ddc42feed0 *man/augment.rlm.Rd
162 0a44c73d408032b20ba157f98758aed9 *man/augment.rma.Rd
163 7e5d9dd90591a1cb6a6ff0a5e0484bb6 *man/augment.robustbase.glmrob.Rd
164 d82790928cf6285632d7e03ab1823c6f *man/augment.robustbase.lmrob.Rd
165 99c8ea258bcacc6e077c8c68cefb96a2 *man/augment.rq.Rd
166 1764532f040c921b6d4dc6ec27ded518 *man/augment.rqs.Rd
167 d3341e14867fc8b1b49088e9914ea909 *man/augment.sarlm.Rd
168 718e9d2ec4cc94a35c920a84a263f4fd *man/augment.smooth.spline.Rd
169 7bde2ac09a16debf4d4bff9875d61357 *man/augment.speedlm.Rd
170 f2ba5de30d685e3d6d90592a4dc4d72a *man/augment.stl.Rd
171 d795e003571b40462a30753fcbd5f3dc *man/augment.survreg.Rd
172172 4f3f23a5565e2b6016bfef53f173a583 *man/augment_columns.Rd
173173 369908e735736b21538c95fff032d6d5 *man/bootstrap.Rd
174 4f50e8940ccabe9d8167a3ed5f204013 *man/broom.Rd
174 3ca5c4938ae0a08f0929238c7ea5ad04 *man/broom.Rd
175175 a64f966822fb9cdf2f6664dd929fefb5 *man/confint_tidy.Rd
176 0a87df4a22c258f8605a73181a61f35c *man/data.frame_tidiers.Rd
176 9d4272c4234aa498cbea5dd76bc22e06 *man/data.frame_tidiers.Rd
177177 5faee7107142a3cf6a1964af44949d1c *man/durbinWatsonTest_tidiers.Rd
178178 0dee9824ab0579527a569ed5db162467 *man/figures/logo.png
179179 d575df56148fbfb7ffbeca6ff5096443 *man/finish_glance.Rd
186186 1c63ab51ce8f73f39bb35baeb75cd2da *man/glance.betamfx.Rd
187187 dd486e62dfd5b6d946f8fd205ce1d11e *man/glance.betareg.Rd
188188 29bd0639a4c171db7ecaf0e2a0931a35 *man/glance.biglm.Rd
189 676af72ee9228070a59567a3656dd319 *man/glance.binDesign.Rd
190 9d5553cb14693024345d896cb2dcf947 *man/glance.cch.Rd
189 ad4c0429bf2f18be8527eacccd9d8da1 *man/glance.binDesign.Rd
190 14250472091f0c412ec524acc3da93dd *man/glance.cch.Rd
191191 c6925f2456c006981098ecd5a6820ea4 *man/glance.clm.Rd
192192 17c9f80fb4e7a0523b9e4316e8761b4c *man/glance.clmm.Rd
193193 d6079e87602eb37f2323c7655af4f6fe *man/glance.coeftest.Rd
194 d147640a38ad9bfd56f0e5c315d8a5de *man/glance.coxph.Rd
194 d42aab1fbe8bcaaba161c2ad6a1f28cc *man/glance.coxph.Rd
195195 82591c6c5a5f3372af9ecab88aab37fa *man/glance.crr.Rd
196 1c37d648529d69ed0170cfdd461646b5 *man/glance.cv.glmnet.Rd
196 8a7cd8fe01632d4f07ee054c30accd3d *man/glance.cv.glmnet.Rd
197197 8d90e172385f4ea8fbb68adda5575a24 *man/glance.drc.Rd
198198 64048cc012f6b00e7ef2d29c421e605f *man/glance.ergm.Rd
199199 8a3c39ca4bc5779459052567d368fb7a *man/glance.factanal.Rd
205205 52977d1912f1ee14cb555dfa41b5b6d9 *man/glance.geeglm.Rd
206206 4880dedbf82d06cc00f3d54b2d859e0d *man/glance.glm.Rd
207207 1273f1cae11dae8d80fdc973b41b0c59 *man/glance.glmRob.Rd
208 f0946caaa8670ca5655bfec68c0ae19f *man/glance.glmnet.Rd
209 c284f3d1832d03ad8ed1778a383830a7 *man/glance.gmm.Rd
208 701a1b52087586a22581308b25221b2c *man/glance.glmnet.Rd
209 a106b5d9c5beb8cd736e151329d28fd5 *man/glance.gmm.Rd
210210 fd0e86f83470e3eeb24f5449e15c2305 *man/glance.ivreg.Rd
211211 cf0d4168fac2d79915a794ffb7a53015 *man/glance.kmeans.Rd
212212 1e0f0b7a736a7496fbe3c1c2a40120ac *man/glance.lavaan.Rd
213 542e815060049af513c80607b48c3d5f *man/glance.lm.Rd
213 51d4e9e652ae0ee72cdadf5801e450ba *man/glance.lm.Rd
214214 9728422b506f9b890fc6c7df6315bf40 *man/glance.lmRob.Rd
215 237bf25969e0e67894299b84fe9851fd *man/glance.lmodel2.Rd
215 b87f8a210e6c7666bebfdfd838e0b441 *man/glance.lmodel2.Rd
216216 001993eb6a3e99df610d2272779f3206 *man/glance.margins.Rd
217217 c49babfc530bfab389cfed897f801586 *man/glance.mfx.Rd
218218 dffd076647b087b7b6525a3fe2f770e7 *man/glance.mjoint.Rd
221221 8bbfed98a8bf254ba63581f4dc43cfbd *man/glance.multinom.Rd
222222 b00be6ab5f5de1d9b5407f6b560f518e *man/glance.negbin.Rd
223223 13207828e7947bd7e8b03c4b3d497bb2 *man/glance.nlrq.Rd
224 0e9066e1f4de475ad39102e19f2af58c *man/glance.nls.Rd
224 cf66b9f193d87ea64192ae942ac3b760 *man/glance.nls.Rd
225225 96691f959768452fbe32848760aa8b6e *man/glance.orcutt.Rd
226 9df5aced5bc8223c843c29d7b0905c77 *man/glance.pam.Rd
226 dddaebf1e597b440529c24cf3fddf52f *man/glance.pam.Rd
227227 eeee7c5379dedd236cda61e8ac307640 *man/glance.plm.Rd
228 72f5d219655c8a38cbfe15834c2b424b *man/glance.poLCA.Rd
228 e0fea8cc22ab22521a2e2e6028f2ad71 *man/glance.poLCA.Rd
229229 8ff2d7e9dfca2406e27535491c132161 *man/glance.polr.Rd
230230 1d5dc8e67adb7ae245087d3e2af7ee66 *man/glance.pyears.Rd
231 5cba58dfe844504f2da0b158aaf8eb2c *man/glance.ridgelm.Rd
231 94a8587f7c74c161701816045eb00081 *man/glance.ridgelm.Rd
232232 e8a2aae0db220ca0e16001cefa80308f *man/glance.rlm.Rd
233233 a2f054b0c785af7f59b0897067f9bd48 *man/glance.rma.Rd
234234 5b6930affe75af6be67ce03697340c0b *man/glance.robustbase.lmrob.Rd
235235 d37ac2d4cd5c8efe941f2fe49bd9d051 *man/glance.rq.Rd
236236 9243cd1b3ba2f349bbe51d8a7ce3ab6e *man/glance.sarlm.Rd
237 083c50cfdb484b6c1d46a31fac1b3541 *man/glance.smooth.spline.Rd
237 034d9610a8f147bc554b905b6fe1bb6f *man/glance.smooth.spline.Rd
238238 ae0147973fdc81d4082ead6a615841fc *man/glance.speedglm.Rd
239239 5430e0e7ba911cf78e466f05645050c6 *man/glance.speedlm.Rd
240 fefdfdb4b13fe6e70bdc542f53d2fe70 *man/glance.summary.lm.Rd
240 d28096f82be108174af5533ce64730c7 *man/glance.summary.lm.Rd
241241 976d76fd318b0173cf4818ac79316365 *man/glance.survdiff.Rd
242242 fab8c82e179dc4cffab5d2b42a7fb5d9 *man/glance.survexp.Rd
243 35a5e041261a8a9d25fe8c4dad669280 *man/glance.survfit.Rd
244 fadd91cf4b950ef0cdd9d5492516d6e4 *man/glance.survreg.Rd
243 d2d999518bde1c2691bcfb4d69854c89 *man/glance.survfit.Rd
244 12b9485e3568e545e76c4da17a35c393 *man/glance.survreg.Rd
245245 896979d6025a7ddc47134766bb310d20 *man/glance.svyglm.Rd
246246 ca49f935cd569bb789e9f09c8469b89a *man/glance.svyolr.Rd
247247 c65e63062b20c99d2cced6d1f8d2924c *man/glance.varest.Rd
266266 374f5e529a1ecd37d48b6fde8497c142 *man/tidy.betamfx.Rd
267267 64e6f4249b174dd59d164e3885f19791 *man/tidy.betareg.Rd
268268 eb39b5bc3c8cfbb8265400691724b0e6 *man/tidy.biglm.Rd
269 d37a2b503cc4840857a9c533c11ed61c *man/tidy.binDesign.Rd
269 d9d52a6ab62cdf12c43b21d6d17e7de9 *man/tidy.binDesign.Rd
270270 0f82d1cb8a4f5efe517dd2383d0cf89a *man/tidy.binWidth.Rd
271271 f5910c5740ae96887231f11d963c0161 *man/tidy.boot.Rd
272272 460c810216c6627ad6cc59c51a135232 *man/tidy.btergm.Rd
273 1c67035ee400ef0c084f656c166e18e2 *man/tidy.cch.Rd
274 2726c185c10ab67a829130be9ee1670d *man/tidy.cld.Rd
273 c4fa04113dcf60d5c08baee7b5a73194 *man/tidy.cch.Rd
274 a64d6e6598b31f0f4b1d36f09979f0fc *man/tidy.cld.Rd
275275 d42d3cb5c42f4ed9681ef51d8aa01a79 *man/tidy.clm.Rd
276276 2310a25841482799a39297e5e19b7390 *man/tidy.clmm.Rd
277277 f7d0122e2e7dec51c8d106041d4a7b4f *man/tidy.coeftest.Rd
278 449d807e1bf9bad2e269150d633cc89a *man/tidy.confint.glht.Rd
278 a772aad1984d35646c108491d8578996 *man/tidy.confint.glht.Rd
279279 3215db56abb56b374832adac8cc84a17 *man/tidy.confusionMatrix.Rd
280 6be98f6dd4feebbdb70d00338884c244 *man/tidy.coxph.Rd
280 e0c746d39cdcd1bd3f1a3b0925ab7201 *man/tidy.coxph.Rd
281281 64d784b528a079e8def843d6bab3afaf *man/tidy.crr.Rd
282 41ed19dd81d6a4416fd32b02332334fb *man/tidy.cv.glmnet.Rd
282 437626eb1dc7491b8f60f5f6aa794f64 *man/tidy.cv.glmnet.Rd
283283 2dbe0f0e72d7708e6284db875ef5ee62 *man/tidy.density.Rd
284284 9e74429610132f71522270a001dd6162 *man/tidy.dist.Rd
285285 f538eda10b6971589a4967ff27283a1d *man/tidy.drc.Rd
286 c68ac33177da20c8a8bb5c41a3af76b5 *man/tidy.emmGrid.Rd
286 e74cd4ee3dad3c84e64f9893526a18dc *man/tidy.emmGrid.Rd
287287 74b6a8669e9d597eba010fb3b456e8c3 *man/tidy.epi.2by2.Rd
288288 2d505e0e68219cb77042330125b5d68f *man/tidy.ergm.Rd
289289 946be3c520f90d5e31ee3b2d5874da9e *man/tidy.factanal.Rd
294294 b502da33f2597d91bdf16ee53116ca64 *man/tidy.gam.Rd
295295 9f805f8279cabf76ceeb90b69e82f0ea *man/tidy.garch.Rd
296296 68d3e232d86d2b3f2ff6e11bd3d9bdb3 *man/tidy.geeglm.Rd
297 da124ab50170dbfe08948fb0aea18209 *man/tidy.glht.Rd
297 76f047b39b4c05d2a7cbe13cc69ec506 *man/tidy.glht.Rd
298298 15eb1bbec5f32828f15a7deea05eca2f *man/tidy.glm.Rd
299299 06d2feceee9f2f01af6998e5be1feb17 *man/tidy.glmRob.Rd
300 fde9bedf14df7f733ac73294bd9062de *man/tidy.glmnet.Rd
301 a6ec046759fa523c1351d0d2560d199b *man/tidy.gmm.Rd
300 d75b4c5628d1ac55337fd03dcf0989d9 *man/tidy.glmnet.Rd
301 4b583663421329d1172fd53ff59451fe *man/tidy.gmm.Rd
302302 873ce3752c3321e21fcc5b0fea05e371 *man/tidy.htest.Rd
303303 920a8d3ae412490826f7410c826c8995 *man/tidy.ivreg.Rd
304 674c92abd9d2bad80ff027db97f80aa4 *man/tidy.kappa.Rd
305 0dda28c7d9463319d2e87e0f667d2329 *man/tidy.kde.Rd
304 473a598a1b0f35320260a31990d74137 *man/tidy.kappa.Rd
305 3e84c3db0e46533899ef8ff549347151 *man/tidy.kde.Rd
306306 b008a62959556b25ea1efa5e2a26076e *man/tidy.kmeans.Rd
307307 325d91640c5e372985c1331379cfdd58 *man/tidy.lavaan.Rd
308 aeeb231a7e68715e5394dd78003ea1e8 *man/tidy.lm.Rd
308 28a5f57eff79c114f25bdb4564446ed6 *man/tidy.lm.Rd
309309 770e546e0f2e9b897b608d4c7454eae3 *man/tidy.lm.beta.Rd
310310 76a6bc7e0e205c8a628a48741f2aba7f *man/tidy.lmRob.Rd
311 3938e8314c40aae241701866b77bc880 *man/tidy.lmodel2.Rd
312 0cd201f9ab722d8e05a30dbdc6ac402b *man/tidy.lsmobj.Rd
311 4e81b99b820d0b50c59b80a197474a35 *man/tidy.lmodel2.Rd
312 37eac6d3e4dd48d710ad4fab71fef6f3 *man/tidy.lsmobj.Rd
313313 ae25060c7559efb042a506e1270c75f4 *man/tidy.manova.Rd
314 7d203bbb740f1a677ff27940c6a9197f *man/tidy.map.Rd
314 787766916b812776a07c99df6347ddec *man/tidy.map.Rd
315315 0c8703257f1f81d217e7514d1967674e *man/tidy.margins.Rd
316316 718d09cf00681b3f98e8ceeb55d7dec8 *man/tidy.mediate.Rd
317317 36f5018a55166abcdf6f1b5569e2f1d4 *man/tidy.mfx.Rd
323323 cc7cfee71714389a926f0cd088d4f105 *man/tidy.multinom.Rd
324324 7f9b90d28dad6f30e9db0d4975a73845 *man/tidy.negbin.Rd
325325 ea253b475ca79245ce6c444fb0423af9 *man/tidy.nlrq.Rd
326 07ed21f32de50c8325856fb8f891ba2c *man/tidy.nls.Rd
326 1c1a80bc7e4fb792582ef0b8992e94cf *man/tidy.nls.Rd
327327 c02f8406c0027af93ea541f6577b8553 *man/tidy.orcutt.Rd
328328 ab5e6fcd7ec35ed7ec73d8974588f90f *man/tidy.pairwise.htest.Rd
329 aef0512933782a248b1ef59e59d6b42c *man/tidy.pam.Rd
329 d2880fa11805b129a4b03c726faffe3e *man/tidy.pam.Rd
330330 1bd4ed7bd1143d720585f9a65b2644f5 *man/tidy.plm.Rd
331 8d69c6f200f6725e4d8be5502f9917cf *man/tidy.poLCA.Rd
331 2b1f157651e390d8237a7962278eb7a6 *man/tidy.poLCA.Rd
332332 f44bcae3478222965798da4029d79829 *man/tidy.polr.Rd
333 561d1be208176c32092f451aed5df2e9 *man/tidy.power.htest.Rd
334 1ff21807f27af5471fd2867cca405001 *man/tidy.prcomp.Rd
333 c86c1b8051537157d4fbfe91d1e89ac7 *man/tidy.power.htest.Rd
334 27eadcd5c7ba4602502d7c4124947096 *man/tidy.prcomp.Rd
335335 a8f9eead94a00d866e27b8d83a65c9b6 *man/tidy.pyears.Rd
336 4cff4e53584c4415c333a9cfbebd8c89 *man/tidy.rcorr.Rd
337 59da900ec86013dda8b0aa2b7e69612b *man/tidy.ref.grid.Rd
336 25c712fc42f09fa23277e891028faba0 *man/tidy.rcorr.Rd
337 ede81656463f16df4742de7b54262f3c *man/tidy.ref.grid.Rd
338338 2664ac6dcb9ff86b34ca71bc9b24fea3 *man/tidy.regsubsets.Rd
339 9d18662f19096c41c108a0bae6eb63b9 *man/tidy.ridgelm.Rd
339 f0f4f3958d2820e02e0ef1aa881ca27e *man/tidy.ridgelm.Rd
340340 3a6fb1b49cea4153869ce3e472a3ecdb *man/tidy.rlm.Rd
341341 8a1ff9f53fa7800fa080622ba1637923 *man/tidy.robustbase.glmrob.Rd
342342 f1a6ead4045e3df9fd9fd4e7bef5fd29 *man/tidy.robustbase.lmrob.Rd
343 1e758a620a2b6addc4115fa6318d30b1 *man/tidy.roc.Rd
343 c22462bbed0567eefe95dc78fee8d598 *man/tidy.roc.Rd
344344 c54716edaaf5afedf86e3b42ca108d4e *man/tidy.rq.Rd
345345 405d00fc8adb766775c6935c3c829086 *man/tidy.rqs.Rd
346346 a4d325d42d086e29f2b1ede566d9b545 *man/tidy.sarlm.Rd
347 ed694180f65533b98220652af962def6 *man/tidy.spec.Rd
347 15633df8aeee68f1f828c029306a07c4 *man/tidy.spec.Rd
348348 5205ad2fb503fa299aa90ae0f9c06727 *man/tidy.speedglm.Rd
349349 12d30a2408370ce13213058d539e7128 *man/tidy.speedlm.Rd
350 e74db25118a3c82485cc9b1653889a31 *man/tidy.summary.glht.Rd
350 4f710b7516bc685f091c63ea66b170a9 *man/tidy.summary.glht.Rd
351351 8cb4a595f32240799942f7bd96afc871 *man/tidy.summary.lm.Rd
352 3658c82bded9c5ff7a928d051fe93d43 *man/tidy.summary_emm.Rd
352 cf3287cd82213e09127998304dadd1a1 *man/tidy.summary_emm.Rd
353353 db6f8a7fd7429a096a0a7e1e9fe240b3 *man/tidy.survdiff.Rd
354354 bbd2d39b971582db22b7757aca60a5bd *man/tidy.survexp.Rd
355 dc114636eedeed4012e2052f350b1fe9 *man/tidy.survfit.Rd
356 9d72e1eb5adffd951cb28d40755b3b41 *man/tidy.survreg.Rd
355 d847ac400e1a77e34283df50ce5cc142 *man/tidy.survfit.Rd
356 03bd6bde61f2f933f49d12cfd688aeb7 *man/tidy.survreg.Rd
357357 9f321efdf528399cff7e35668ba5a25d *man/tidy.svyglm.Rd
358358 9b4126d011338b32e47c745a2ac44cf1 *man/tidy.svyolr.Rd
359359 3f2f99e6e80ebcdd6a7358c1d9e5a848 *man/tidy.systemfit.Rd
360360 f8e15a0389aadc2325f8a13cf661cb00 *man/tidy.table.Rd
361361 b8c043a86cce7062242324d71dde88d4 *man/tidy.ts.Rd
362362 2453f34bf129c78004f63def7500d5f6 *man/tidy.varest.Rd
363 782052a7497fb91613448ad5aa05818a *man/tidy.zoo.Rd
363 874ef72fe550a6a621809fb94365aabb *man/tidy.zoo.Rd
364364 322fa33097f070f4e8a94025845558f3 *man/tidy_gam_hastie.Rd
365 9d0b81b8c65c768a813280b5535ead53 *man/tidy_irlba.Rd
365 ae54b2905faa741c81e9c0bbbe0f1f1e *man/tidy_irlba.Rd
366366 06a84012b03e22c1642dfd517a6204d0 *man/tidy_optim.Rd
367 4a6baffc1ef654aada036e4e96eb87e2 *man/tidy_svd.Rd
367 9c957ca5803bc4dcb85f0c8b52e72425 *man/tidy_svd.Rd
368368 4e26b8870e5b302601513b3de2549ea4 *man/tidy_xyz.Rd
369369 dd4a9243950fa76015dd2e904b834992 *man/vector_tidiers.Rd
370370 50f330eeca8db092d6807e04457bd06d *tests/spelling.R
371371 ee8c1b68c4f50d216c1e59dad52e8070 *tests/test-all.R
372 6052bbfc5df984a81629588d8c369373 *tests/testthat/test-aaa-documentation-helper.R
373372 6cddcd34001460a5521725562540c11d *tests/testthat/test-aer.R
374373 e2a28d185876b8711a5fff8b66349938 *tests/testthat/test-aov.R
375374 8079176da7944da1509ed030b65d52a6 *tests/testthat/test-auc.R
381380 cc8ebf48ba5116ad15e4876fb79b2715 *tests/testthat/test-btergm.R
382381 7beee6417ceea77a8cb08a3851e31c19 *tests/testthat/test-car.R
383382 df3b2a5d56252101fbf6fd98f10b8386 *tests/testthat/test-caret.R
384 4eb9886c6945547ead747a6ae8449336 *tests/testthat/test-cluster.R
383 1f39bdadd8a91473d455c508ab40be80 *tests/testthat/test-cluster.R
385384 dd81840f362c7a15fbce5de9a58c6e26 *tests/testthat/test-cmprsk.R
386385 3d298bac994dcfbe8ba9efa8cdee6ab1 *tests/testthat/test-drc.R
387386 41000fc6116247dae6234742ecdb53e6 *tests/testthat/test-emmeans.R
399398 9350fbc996a20bdbfb1e8a736ba7d463 *tests/testthat/test-ks.R
400399 c12589d5d0f961d6ba6e56e50e99cff9 *tests/testthat/test-lavaan.R
401400 2eca4ca161af7bb45c4355b7629e1a9a *tests/testthat/test-leaps.R
402 68426b789cafcb11dd5a100ebc7216a6 *tests/testthat/test-lfe.R
401 4b7cc7e3536e3e85498101e519f0d668 *tests/testthat/test-lfe.R
403402 b480bcdef3b2caa56a03b114a691b98b *tests/testthat/test-list-irlba.R
404403 53e59bef082f622042cf77cafc8edc96 *tests/testthat/test-list-optim.R
405404 0e228297dd031755687c70a92a66964d *tests/testthat/test-list-svd.R
415414 63bef46f66a55a31ad0fd3c778de0d34 *tests/testthat/test-mass-polr.R
416415 1d5a4eff5796abbfb198ce6bf1289517 *tests/testthat/test-mass-ridgelm.R
417416 287fb52c8898c191cc68ca4ba94190f1 *tests/testthat/test-mass-rlm.R
418 f4fb5551722d60b2dde5d64764dd2841 *tests/testthat/test-mclust.R
417 bc64d1740c57f3fa0835e1bc8e83f2ba *tests/testthat/test-mclust.R
419418 aa4b5c55c684e93e9b00e8f95b6e4ff4 *tests/testthat/test-mediation.R
420419 607c59df208bfaf465133bd524a8a896 *tests/testthat/test-metafor.R
421 06e6ff820e4023e1092a51fbb396a982 *tests/testthat/test-mfx.R
422 3dcd010cce4a386c59cbe546ac9311b6 *tests/testthat/test-mgcv.R
423 4157af0039f6c26f142dc9bfb74f8cc5 *tests/testthat/test-muhaz.R
420 a499ce1e0678d4a384c1279a09acd0b8 *tests/testthat/test-mfx.R
421 fa2adb1fe65d1cc58d5bc74cb132db7c *tests/testthat/test-mgcv.R
422 ad241cbc465608381dcb6f644aba772e *tests/testthat/test-muhaz.R
424423 cbef2c791f181283735663fe060c87db *tests/testthat/test-multcomp.R
425424 3fb071fb263841ddd09e2a59255b7c64 *tests/testthat/test-nnet.R
426425 39c854757f25e3b0327944473a9bdb85 *tests/testthat/test-null-and-default.R
433432 d12379331b0b98602c658b1de5809d05 *tests/testthat/test-quantreg-rq.R
434433 4ae33991c38416bce07d7b6f1550dbbc *tests/testthat/test-quantreg-rqs.R
435434 098ac7958932093a21ef2631a04258ac *tests/testthat/test-robust.R
436 3554b5e232ae064827e9d8f888851d23 *tests/testthat/test-robustbase.R
435 7c3a7e5eafd3ea72bbc2e2f26deb2171 *tests/testthat/test-robustbase.R
437436 4d92b111afeb56a7c953f6bbae78d6c8 *tests/testthat/test-sp.R
438437 7e2b132bd16f7cb05785789d5f370141 *tests/testthat/test-spdep.R
439438 9e505e23ba065f466d96f5b7e2150667 *tests/testthat/test-speedglm-speedglm.R
442441 6b380611f6a1b804a44d62a89a29dffd *tests/testthat/test-stats-arima.R
443442 e87f283681d702c9b7c9e9e6175ea26f *tests/testthat/test-stats-decompose.R
444443 b465102ed72d0f61c27b304a059173e2 *tests/testthat/test-stats-factanal.R
445 97df7704f71226b33c19c4d44f5c5b74 *tests/testthat/test-stats-glm.R
444 92a8522c58d3cab7cfe87442834549ae *tests/testthat/test-stats-glm.R
446445 7ac21cd4b71613cbdd49ca118375e4f0 *tests/testthat/test-stats-htest.R
447446 f637a56842c8e7b35faacd4db5749a15 *tests/testthat/test-stats-kmeans.R
448447 aca1721884b3b473fc494915e543d618 *tests/testthat/test-stats-lm.R
456455 626bc9aa0d826dd67c9469576bc84a01 *tests/testthat/test-survey.R
457456 b88a2a5e3185994bab7e5d5a44d82dab *tests/testthat/test-survival-aareg.R
458457 6af265db3b7dacca2aeda94c73fb4b51 *tests/testthat/test-survival-cch.R
459 ef6f2baf720fff04eaeb197ce8c14963 *tests/testthat/test-survival-coxph.R
458 c6de5c42c53cdd386bd95be97619b8d2 *tests/testthat/test-survival-coxph.R
460459 b54ebca8f1ce212de324061879a2eb92 *tests/testthat/test-survival-pyears.R
461460 e31daf532003cf1fd9989356742ac1ac *tests/testthat/test-survival-survdiff.R
462461 78cfe7d1a286d8b49eef5a2652d2b0ed *tests/testthat/test-survival-survexp.R
463462 06c5351728b8d5c52f7f05a8c037cc7b *tests/testthat/test-survival-survfit.R
464 07bde389cabde75beb0320c5a649e632 *tests/testthat/test-survival-survreg.R
463 751026716654c107a4fa7b39fb0845bb *tests/testthat/test-survival-survreg.R
465464 d9d0904b1018f905c5d3bb9ada5c5884 *tests/testthat/test-systemfit.R
466465 81394af7a4e283671f56ae6d44114821 *tests/testthat/test-tseries.R
467 02fc6e88f2a0c60f2e098f6f33fe9a76 *tests/testthat/test-utilities.R
466 28d75afb23bec63802dcdf82edd73049 *tests/testthat/test-utilities.R
468467 935809ca0977cb4ffb09deca6158b62f *tests/testthat/test-vars.R
469468 a828c17aaa8b851c1e22f9d9d1a9bbde *tests/testthat/test-zoo.R
470469 906ef10bdc07a57e4b0bf997068bf859 *vignettes/adding-tidiers.Rmd
472471 ff8f69aaff51a387afb999c83d6fdcb6 *vignettes/available-methods.Rmd
473472 e078805eb9f9c16e9c24b376f71ec778 *vignettes/bootstrapping.Rmd
474473 5092072954108fd18db2b727844a034e *vignettes/broom.Rmd
475 f6bd7233294809d0bfcd8eb4b6085cd6 *vignettes/broom_and_dplyr.Rmd
474 127a6fe5a6336908d469904804c703dc *vignettes/broom_and_dplyr.Rmd
476475 6fc83a2700fedd6988f437fc7fd6d6de *vignettes/kmeans.Rmd
0 # broom 1.0.2
1
2 * The default `data` argument for `augment.coxph()` and `augment.survreg()` has been transitioned from `NULL` to `model.frame(x)` (#1126 by `@capnrefsmmat`).
3 * Migrated 'ggplot2' from strong to weak dependency, i.e. moved from `Imports` to `Suggests`.
4 * Fixed a bug where `augment()` results would not include residuals when the response term included a function call (#1121, #946, #937, #124).
5
06 # broom 1.0.1
17
28 * Improves performance of `tidy.lm()` and `tidy.glm()` for full-rank fits (#1112 by `@capnrefsmmat`).
55 #'
66 #' @evalRd return_tidy("cutoff", "tpr", "fpr")
77 #'
8 #' @examplesIf rlang::is_installed("AUC")
8 #' @examplesIf rlang::is_installed(c("AUC", "ggplot2"))
99 #'
1010 #' # load libraries for models and data
1111 #' library(AUC)
4141 #' power = "Power achieved for given value of n."
4242 #' )
4343 #'
44 #' @examples
45 #'
46 #' if (requireNamespace("binGroup", quietly = TRUE)) {
44 #' @examplesIf rlang::is_installed(c("binGroup", "ggplot2"))
4745 #'
4846 #' library(binGroup)
4947 #' des <- binDesign(
5957 #' ggplot(tidy(des), aes(n, power)) +
6058 #' geom_line()
6159 #'
62 #' }
6360 #'
6461 #' @export
6562 #' @family bingroup tidiers
8481 #' maxit = "Number of iterations performed."
8582 #' )
8683 #'
87 #' @examplesIf rlang::is_installed("binGroup")
84 #' @examplesIf rlang::is_installed(c("binGroup", "ggplot2"))
8885 #'
8986 #' # load libraries for models and data
9087 #' library(binGroup)
2525 #' @keywords internal
2626 "_PACKAGE"
2727
28 # address unused Imports warning from R CMD check
29 import_ggplot <- function() {
30 ggplot2::aes()
31 }
2424 #' @seealso [tidy()], [cluster::pam()]
2525 #' @family pam tidiers
2626 # skip running examples - occasionally over CRAN check time limit
27 #' @examplesIf (rlang::is_installed("cluster") & rlang::is_installed("modeldata") && identical(Sys.getenv("NOT_CRAN"), "true"))
27 #' @examplesIf (rlang::is_installed(c("cluster", "modeldata", "ggplot2")) && identical(Sys.getenv("NOT_CRAN"), "true"))
2828 #'
2929 #' # load libraries for models and data
3030 #' library(dplyr)
3131 #' kurtosis and related tests. R package version 0.14. \cr
3232 #' https://CRAN.R-project.org/package=moments
3333 #'
34 #' @examples
34 #' @examplesIf rlang::is_installed("ggplot2")
3535 #'
3636 #' td <- tidy(mtcars)
3737 #' td
2525 #' There are a large number of arguments that can be
2626 #' passed on to [emmeans::summary.emmGrid()] or [lsmeans::summary.ref.grid()].
2727 #'
28 #' @examplesIf rlang::is_installed("emmeans")
28 #' @examplesIf rlang::is_installed(c("emmeans", "ggplot2"))
2929 #'
3030 #' # load libraries for models and data
3131 #' library(emmeans)
201201 col_order <- c("r.squared", "adj.r.squared", "within.r.squared",
202202 "pseudo.r.squared", "sigma", "nobs", "AIC", "BIC", "logLik")
203203 res <- bind_cols(res_common, res_r2, res_specific) %>%
204 select(col_order)
204 select(dplyr::any_of(col_order))
205205 res
206206 }
1515 #' lamdba"
1616 #' )
1717 #'
18 #' @examplesIf rlang::is_installed("glmnet")
18 #' @examplesIf rlang::is_installed(c("glmnet", "ggplot2"))
1919 #'
2020 #' # load libraries for models and data
2121 #' library(glmnet)
2323 #' logical. Furthermore, predictions make sense only with a specific
2424 #' choice of lambda.
2525 #'
26 #' @examplesIf rlang::is_installed("glmnet")
26 #' @examplesIf rlang::is_installed(c("glmnet", "ggplot2"))
2727 #'
2828 #' # load libraries for models and data
2929 #' library(glmnet)
77 #'
88 #' @evalRd return_tidy(regression = TRUE)
99 #'
10 #' @examplesIf rlang::is_installed("gmm")
10 #' @examplesIf rlang::is_installed(c("gmm", "ggplot2"))
1111 #'
1212 #' # load libraries for models and data
1313 #' library(gmm)
2020 #' `cor(B, A)`. Only one of these pairs will ever be present in the tidy
2121 #' output.
2222 #'
23 #' @examplesIf rlang::is_installed("Hmisc")
23 #' @examplesIf rlang::is_installed(c("Hmisc", "ggplot2"))
2424 #'
2525 #' # load libraries for models and data
2626 #' library(Hmisc)
99 #' \code{tidyr::pivot_wider(..., names_from = variable, values_from = value)}
1010 #' on the output to return to a wide format.
1111 #'
12 #' @examplesIf rlang::is_installed("ks")
12 #' @examplesIf rlang::is_installed(c("ks", "ggplot2"))
1313 #'
1414 #' # load libraries for models and data
1515 #' library(ks)
33 #' @inherit tidy.prcomp return details params
44 #' @param x A list with components `u`, `d`, `v` returned by [base::svd()].
55 #'
6 #' @examplesIf rlang::is_installed("modeldata")
6 #' @examplesIf rlang::is_installed(c("modeldata", "ggplot2"))
77 #'
88 #' library(modeldata)
99 #' data(hpc_data)
2222 #' be valid. More information can be found in
2323 #' `vignette("mod2user", package = "lmodel2")`.
2424 #'
25 #' @examplesIf rlang::is_installed("lmodel2")
25 #' @examplesIf rlang::is_installed(c("lmodel2", "ggplot2"))
2626 #'
2727 #' # load libraries for models and data
2828 #' library(lmodel2)
1111 #' and depend on the inputted map object. See ?maps::map for more information."
1212 #' )
1313 #'
14 #' @examplesIf rlang::is_installed("maps")
14 #' @examplesIf rlang::is_installed(c("maps", "ggplot2"))
1515 #'
1616 #' # load libraries for models and data
1717 #' library(maps)
101101 ret <-
102102 ret %>%
103103 dplyr::select(
104 term = .data$factor,
104 term = factor,
105105 dplyr::contains("at."),
106 estimate = .data$AME,
107 std.error = .data$SE,
108 statistic = .data$z,
109 p.value = .data$p,
110 conf.low = .data$lower,
111 conf.high = .data$upper
106 estimate = AME,
107 std.error = SE,
108 statistic = z,
109 p.value = p,
110 conf.low = lower,
111 conf.high = upper
112112 )
113113
114114 # Remove confidence interval if not specified
88 #' scale = "Scaling factor of estimated coefficient"
99 #' )
1010 #'
11 #' @examplesIf rlang::is_installed("MASS")
11 #' @examplesIf rlang::is_installed(c("MASS", "ggplot2"))
1212 #'
1313 #' # load libraries for models and data
1414 #' library(MASS)
66 #'
77 #' @evalRd return_tidy("contrast", "null.value", "estimate")
88 #'
9 #' @examplesIf rlang::is_installed("multcomp")
9 #' @examplesIf rlang::is_installed(c("multcomp", "ggplot2"))
1010 #'
1111 #' # load libraries for models and data
1212 #' library(multcomp)
1111 #' "std.error"
1212 #' )
1313 #'
14 #' @examplesIf rlang::is_installed("poLCA")
14 #' @examplesIf rlang::is_installed(c("poLCA", "ggplot2"))
1515 #'
1616 #' # load libraries for models and data
1717 #' library(poLCA)
9292 }
9393
9494 probs <- probs %>%
95 mutate(class = utils::type.convert(class))
95 mutate(class = utils::type.convert(class, as.is = TRUE))
9696
9797 probs_se <- purrr::map2_df(x$probs.se, names(x$probs.se), reshape_probs) %>%
9898 mutate(variable = as.character(variable)) %>%
1414 #' cannot be set in `tidy`. Instead you must set the `alpha` argument
1515 #' to [psych::cohen.kappa()] when creating the `kappa` object.
1616 #'
17 #' @examplesIf rlang::is_installed("psych")
17 #' @examplesIf rlang::is_installed(c("psych", "ggplot2"))
1818 #'
1919 #' # load libraries for models and data
2020 #' library(psych)
132132 ret < cbind(cbind(term, ret), response)
133133 row.names(ret) <- NULL
134134 }
135 } else if (is.null(ret$term) & length(mod_lines) != 0) {
135 } else if ((!"term" %in% colnames(ret)) & length(mod_lines) != 0) {
136136 mods <- sub(".*: ", "", strsplit(mod_lines, "\n")[[1]])
137137 ret <- cbind(term = mods, ret)
138 } else if (is.null(ret$term) & !is.null(row.names(ret))) {
138 } else if ((!"term" %in% colnames(ret)) & !is.null(row.names(ret))) {
139139 ret <- cbind(term = row.names(ret), ret)
140140 row.names(ret) <- NULL
141141 }
1414 #' \item{`.seasadj`}{The seasonally adjusted (or "deseasonalised")
1515 #' series.}
1616 #'
17 #' @examples
17 #' @examplesIf rlang::is_installed("ggplot2")
1818 #'
1919 #' # time series of temperatures in Nottingham, 1920-1939:
2020 #' nottem
225225 #'
226226 #' @evalRd return_tidy("n", "delta", "sd", "sig.level", "power")
227227 #'
228 #' @examples
228 #' @examplesIf rlang::is_installed("ggplot2")
229229 #'
230230 #' ptt <- power.t.test(n = 2:30, delta = 1)
231231 #' tidy(ptt)
1010 #' @details If the linear model is an `mlm` object (multiple linear model),
1111 #' there is an additional column `response`. See [tidy.mlm()].
1212 #'
13 #' @examples
13 #' @examplesIf rlang::is_installed("ggplot2")
1414 #'
1515 #' library(ggplot2)
1616 #' library(dplyr)
66 #'
77 #' @evalRd return_tidy(regression = TRUE)
88 #'
9 #' @examples
9 #' @examplesIf rlang::is_installed("ggplot2")
1010 #'
1111 #' # fit model
1212 #' n <- nls(mpg ~ k * e^wt, data = mtcars, start = list(k = 1, e = 2))
5353 #' for information on how to interpret the various tidied matrices. Note
5454 #' that SVD is only equivalent to PCA on centered data.
5555 #'
56 #' @examplesIf rlang::is_installed("maps")
56 #' @examplesIf rlang::is_installed(c("maps", "ggplot2"))
5757 #'
5858 #' pc <- prcomp(USArrests, scale = TRUE)
5959 #'
44 #' @template param_data
55 #' @template param_unused_dots
66 #'
7 #' @examples
7 #' @examplesIf rlang::is_installed("ggplot2")
88 #'
99 #' # fit model
1010 #' spl <- smooth.spline(mtcars$wt, mtcars$mpg, df = 4)
7171 #'
7272 #' @evalRd return_tidy("freq", "spec")
7373 #'
74 #' @examples
74 #' @examplesIf rlang::is_installed("ggplot2")
7575 #'
7676 #' spc <- spectrum(lh)
7777 #' tidy(spc)
66 #'
77 #' @evalRd return_tidy(regression = TRUE)
88 #'
9 #' @examplesIf rlang::is_installed("survival")
9 #' @examplesIf rlang::is_installed(c("survival", "ggplot2"))
1010 #'
1111 #' # load libraries for models and data
1212 #' library(survival)
1212 #' "p.value"
1313 #' )
1414 #'
15 #' @examplesIf rlang::is_installed("survival")
15 #' @examplesIf rlang::is_installed(c("survival", "ggplot2"))
1616 #'
1717 #' # load libraries for models and data
1818 #' library(survival)
114114 #' @seealso [augment()], [survival::coxph()]
115115 #' @family coxph tidiers
116116 #' @family survival tidiers
117 augment.coxph <- function(x, data = NULL, newdata = NULL,
117 augment.coxph <- function(x, data = model.frame(x), newdata = NULL,
118118 type.predict = "lp", type.residuals = "martingale",
119119 ...) {
120 if (is.null(data) && is.null(newdata)) {
121 stop("Must specify either `data` or `newdata` argument.", call. = FALSE)
122 }
123
124120 augment_columns(x, data, newdata,
125121 type.predict = type.predict,
126122 type.residuals = type.residuals
1717 #' strata = "strata if stratified survfit object input"
1818 #' )
1919 #'
20 #' @examplesIf rlang::is_installed("survival")
20 #' @examplesIf rlang::is_installed(c("survival", "ggplot2"))
2121 #'
2222 #' # load libraries for models and data
2323 #' library(survival)
66 #'
77 #' @evalRd return_tidy(regression = TRUE)
88 #'
9 #' @examplesIf rlang::is_installed("survival")
9 #' @examplesIf rlang::is_installed(c("survival", "ggplot2"))
1010 #'
1111 #' # load libraries for models and data
1212 #' library(survival)
7474 #' @seealso [augment()], [survival::survreg()]
7575 #' @family survreg tidiers
7676 #' @family survival tidiers
77 augment.survreg <- function(x, data = NULL, newdata = NULL,
77 augment.survreg <- function(x, data = model.frame(x), newdata = NULL,
7878 type.predict = "response",
7979 type.residuals = "response", ...) {
80 if (is.null(data) && is.null(newdata)) {
81 stop("Must specify either `data` or `newdata` argument.", call. = FALSE)
82 }
83
8480 augment_columns(x, data, newdata,
8581 type.predict = type.predict,
8682 type.residuals = type.residuals
1212 }
1313
1414 exponentiate <- function(data, col = "estimate") {
15 data <- mutate_at(data, vars(col), exp)
15 data <- data %>% mutate(across(all_of(col), exp))
1616
1717 if ("conf.low" %in% colnames(data)) {
18 data <- mutate_at(data, vars(conf.low, conf.high), exp)
18 data <- data %>% mutate(across(c(conf.low, conf.high), exp))
1919 }
2020
2121 data
323323 as_tibble(ret)
324324 }
325325
326 response <- function(object, newdata = NULL) {
327 model.response(model.frame(terms(object), data = newdata, na.action = na.pass))
326 response <- function(object, newdata = NULL, has_response) {
327 if (!has_response) {
328 return(NULL)
329 }
330
331 res <-
332 tryCatch(
333 model.response(model.frame(terms(object), data = newdata, na.action = na.pass)),
334 error = function(e) NULL
335 )
336
337 if (is.null(res)) {
338 res <- model.response(model.frame(object))
339 }
340
341 res
328342 }
329343
330344 data_error <- function(cnd) {
370384 df <- if (passed_newdata) newdata else data
371385 df <- as_augment_tibble(df)
372386 # interval <- match.arg(interval)
373 # Check if response variable is in newdata:
374 response_var_in_newdata <- x$call %>%
375 all.vars() %>%
376 .[[1]] %>%
377 is.element(names(df))
387 # check if response variable is in newdata, if relevant:
388 if (!is.null(x$terms) & inherits(x$terms, "formula")) {
389 has_response <-
390 # TRUE if response includes a function call and is in column names,
391 # usually with no `data` or `newdata` supplied,
392 # and `data` defaults to `model_frame(x)`
393 rlang::as_label(rlang::f_lhs(x$terms)) %in% names(df) ||
394 # TRUE if the response variable itself is in column names
395 all.vars(x$terms)[1] %in% names(df)
396 } else {
397 has_response <- FALSE
398 }
378399
379400 # NOTE: It is important use predict(x, newdata = newdata) rather than
380401 # predict(x, newdata = df). This is to avoid an edge case breakage
434455 }
435456 }
436457
437 resp <- safe_response(x, df)
458 resp <- safe_response(x, df, has_response)
438459
439460 if (!is.null(resp) && is.numeric(resp)) {
440461 df$.resid <- (resp - df$.fitted) %>% unname()
517538 ".tau",
518539 "aic",
519540 "alternative",
541 "AME",
520542 "bic",
521543 "chosen",
522544 "ci.lower",
562584 "lhs",
563585 "lm",
564586 "loading",
587 "lower",
565588 "method",
566589 "Method",
567590 "N",
571594 "objs",
572595 "obs",
573596 "op",
597 "p",
574598 "p.value",
575599 "packageVersion",
576600 "PC",
586610 "rowname",
587611 "rstudent",
588612 "se",
613 "SE",
589614 "series",
590615 "Slope",
591616 "stat",
598623 "tau2.del",
599624 "term",
600625 "type",
626 "upper",
601627 "value",
602628 "Var1",
603629 "Var2",
55 #'
66 #' @evalRd return_tidy("index", "series", "value")
77 #'
8 #' @examplesIf rlang::is_installed("zoo")
8 #' @examplesIf rlang::is_installed(c("zoo", "ggplot2"))
99 #'
1010 #' # load libraries for models and data
1111 #' library(zoo)
Binary diff not shown
00 ## ----setup, include = FALSE---------------------------------------------------
11 knitr::opts_chunk$set(message = FALSE, warning = FALSE)
2
3 if (rlang::is_installed("ggplot2")) {
4 run <- TRUE
5 } else {
6 run <- FALSE
7 }
8
9 knitr::opts_chunk$set(
10 eval = run
11 )
212
313 ## -----------------------------------------------------------------------------
414 library(broom)
99
1010 ```{r setup, include = FALSE}
1111 knitr::opts_chunk$set(message = FALSE, warning = FALSE)
12
13 if (rlang::is_installed("ggplot2")) {
14 run <- TRUE
15 } else {
16 run <- FALSE
17 }
18
19 knitr::opts_chunk$set(
20 eval = run
21 )
1222 ```
1323
1424 # broom and dplyr
5757 object with varying degrees of success.
5858
5959 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
60 \strong{same number of rows} as the passed dataset. This means that the
61 passed data must be coercible to a tibble. At this time, tibbles do not
62 support matrix-columns. This means you should not specify a matrix
63 of covariates in a model formula during the original model fitting
64 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
65 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
66 encounter errors, try explicitly passing a tibble, or fitting the original
67 model on data in a tibble.
60 \strong{same number of rows} as the passed dataset. This means that the passed
61 data must be coercible to a tibble. If a predictor enters the model as part
62 of a matrix of covariates, such as when the model formula uses
63 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
64 as a matrix column.
6865
6966 We are in the process of defining behaviors for models fit with various
7067 \code{na.action} arguments, but make no guarantees about behavior when data is
7878 object with varying degrees of success.
7979
8080 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
81 \strong{same number of rows} as the passed dataset. This means that the
82 passed data must be coercible to a tibble. At this time, tibbles do not
83 support matrix-columns. This means you should not specify a matrix
84 of covariates in a model formula during the original model fitting
85 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
86 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
87 encounter errors, try explicitly passing a tibble, or fitting the original
88 model on data in a tibble.
81 \strong{same number of rows} as the passed dataset. This means that the passed
82 data must be coercible to a tibble. If a predictor enters the model as part
83 of a matrix of covariates, such as when the model formula uses
84 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
85 as a matrix column.
8986
9087 We are in the process of defining behaviors for models fit with various
9188 \code{na.action} arguments, but make no guarantees about behavior when data is
7979 object with varying degrees of success.
8080
8181 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
82 \strong{same number of rows} as the passed dataset. This means that the
83 passed data must be coercible to a tibble. At this time, tibbles do not
84 support matrix-columns. This means you should not specify a matrix
85 of covariates in a model formula during the original model fitting
86 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
87 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
88 encounter errors, try explicitly passing a tibble, or fitting the original
89 model on data in a tibble.
82 \strong{same number of rows} as the passed dataset. This means that the passed
83 data must be coercible to a tibble. If a predictor enters the model as part
84 of a matrix of covariates, such as when the model formula uses
85 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
86 as a matrix column.
9087
9188 We are in the process of defining behaviors for models fit with various
9289 \code{na.action} arguments, but make no guarantees about behavior when data is
7171 object with varying degrees of success.
7272
7373 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
74 \strong{same number of rows} as the passed dataset. This means that the
75 passed data must be coercible to a tibble. At this time, tibbles do not
76 support matrix-columns. This means you should not specify a matrix
77 of covariates in a model formula during the original model fitting
78 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
79 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
80 encounter errors, try explicitly passing a tibble, or fitting the original
81 model on data in a tibble.
74 \strong{same number of rows} as the passed dataset. This means that the passed
75 data must be coercible to a tibble. If a predictor enters the model as part
76 of a matrix of covariates, such as when the model formula uses
77 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
78 as a matrix column.
8279
8380 We are in the process of defining behaviors for models fit with various
8481 \code{na.action} arguments, but make no guarantees about behavior when data is
55 \usage{
66 \method{augment}{coxph}(
77 x,
8 data = NULL,
8 data = model.frame(x),
99 newdata = NULL,
1010 type.predict = "lp",
1111 type.residuals = "martingale",
7979 object with varying degrees of success.
8080
8181 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
82 \strong{same number of rows} as the passed dataset. This means that the
83 passed data must be coercible to a tibble. At this time, tibbles do not
84 support matrix-columns. This means you should not specify a matrix
85 of covariates in a model formula during the original model fitting
86 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
87 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
88 encounter errors, try explicitly passing a tibble, or fitting the original
89 model on data in a tibble.
82 \strong{same number of rows} as the passed dataset. This means that the passed
83 data must be coercible to a tibble. If a predictor enters the model as part
84 of a matrix of covariates, such as when the model formula uses
85 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
86 as a matrix column.
9087
9188 We are in the process of defining behaviors for models fit with various
9289 \code{na.action} arguments, but make no guarantees about behavior when data is
103100 warning is raised and the incomplete rows are dropped.
104101 }
105102 \examples{
106 \dontshow{if (rlang::is_installed("survival")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
103 \dontshow{if (rlang::is_installed(c("survival", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
107104
108105 # load libraries for models and data
109106 library(survival)
6262 object with varying degrees of success.
6363
6464 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
65 \strong{same number of rows} as the passed dataset. This means that the
66 passed data must be coercible to a tibble. At this time, tibbles do not
67 support matrix-columns. This means you should not specify a matrix
68 of covariates in a model formula during the original model fitting
69 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
70 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
71 encounter errors, try explicitly passing a tibble, or fitting the original
72 model on data in a tibble.
65 \strong{same number of rows} as the passed dataset. This means that the passed
66 data must be coercible to a tibble. If a predictor enters the model as part
67 of a matrix of covariates, such as when the model formula uses
68 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
69 as a matrix column.
7370
7471 We are in the process of defining behaviors for models fit with various
7572 \code{na.action} arguments, but make no guarantees about behavior when data is
7673 missing at this time.
7774 }
7875 \examples{
76 \dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
7977
8078 # time series of temperatures in Nottingham, 1920-1939:
8179 nottem
126124 group = decomp
127125 ))
128126
127 \dontshow{\}) # examplesIf}
129128 }
130129 \seealso{
131130 \code{\link[=augment]{augment()}}, \code{\link[stats:decompose]{stats::decompose()}}
8181 object with varying degrees of success.
8282
8383 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
84 \strong{same number of rows} as the passed dataset. This means that the
85 passed data must be coercible to a tibble. At this time, tibbles do not
86 support matrix-columns. This means you should not specify a matrix
87 of covariates in a model formula during the original model fitting
88 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
89 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
90 encounter errors, try explicitly passing a tibble, or fitting the original
91 model on data in a tibble.
84 \strong{same number of rows} as the passed dataset. This means that the passed
85 data must be coercible to a tibble. If a predictor enters the model as part
86 of a matrix of covariates, such as when the model formula uses
87 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
88 as a matrix column.
9289
9390 We are in the process of defining behaviors for models fit with various
9491 \code{na.action} arguments, but make no guarantees about behavior when data is
6767 object with varying degrees of success.
6868
6969 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
70 \strong{same number of rows} as the passed dataset. This means that the
71 passed data must be coercible to a tibble. At this time, tibbles do not
72 support matrix-columns. This means you should not specify a matrix
73 of covariates in a model formula during the original model fitting
74 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
75 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
76 encounter errors, try explicitly passing a tibble, or fitting the original
77 model on data in a tibble.
70 \strong{same number of rows} as the passed dataset. This means that the passed
71 data must be coercible to a tibble. If a predictor enters the model as part
72 of a matrix of covariates, such as when the model formula uses
73 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
74 as a matrix column.
7875
7976 We are in the process of defining behaviors for models fit with various
8077 \code{na.action} arguments, but make no guarantees about behavior when data is
5757 object with varying degrees of success.
5858
5959 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
60 \strong{same number of rows} as the passed dataset. This means that the
61 passed data must be coercible to a tibble. At this time, tibbles do not
62 support matrix-columns. This means you should not specify a matrix
63 of covariates in a model formula during the original model fitting
64 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
65 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
66 encounter errors, try explicitly passing a tibble, or fitting the original
67 model on data in a tibble.
60 \strong{same number of rows} as the passed dataset. This means that the passed
61 data must be coercible to a tibble. If a predictor enters the model as part
62 of a matrix of covariates, such as when the model formula uses
63 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
64 as a matrix column.
6865
6966 We are in the process of defining behaviors for models fit with various
7067 \code{na.action} arguments, but make no guarantees about behavior when data is
6868 object with varying degrees of success.
6969
7070 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
71 \strong{same number of rows} as the passed dataset. This means that the
72 passed data must be coercible to a tibble. At this time, tibbles do not
73 support matrix-columns. This means you should not specify a matrix
74 of covariates in a model formula during the original model fitting
75 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
76 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
77 encounter errors, try explicitly passing a tibble, or fitting the original
78 model on data in a tibble.
71 \strong{same number of rows} as the passed dataset. This means that the passed
72 data must be coercible to a tibble. If a predictor enters the model as part
73 of a matrix of covariates, such as when the model formula uses
74 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
75 as a matrix column.
7976
8077 We are in the process of defining behaviors for models fit with various
8178 \code{na.action} arguments, but make no guarantees about behavior when data is
7979 object with varying degrees of success.
8080
8181 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
82 \strong{same number of rows} as the passed dataset. This means that the
83 passed data must be coercible to a tibble. At this time, tibbles do not
84 support matrix-columns. This means you should not specify a matrix
85 of covariates in a model formula during the original model fitting
86 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
87 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
88 encounter errors, try explicitly passing a tibble, or fitting the original
89 model on data in a tibble.
82 \strong{same number of rows} as the passed dataset. This means that the passed
83 data must be coercible to a tibble. If a predictor enters the model as part
84 of a matrix of covariates, such as when the model formula uses
85 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
86 as a matrix column.
9087
9188 We are in the process of defining behaviors for models fit with various
9289 \code{na.action} arguments, but make no guarantees about behavior when data is
8080 object with varying degrees of success.
8181
8282 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
83 \strong{same number of rows} as the passed dataset. This means that the
84 passed data must be coercible to a tibble. At this time, tibbles do not
85 support matrix-columns. This means you should not specify a matrix
86 of covariates in a model formula during the original model fitting
87 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
88 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
89 encounter errors, try explicitly passing a tibble, or fitting the original
90 model on data in a tibble.
83 \strong{same number of rows} as the passed dataset. This means that the passed
84 data must be coercible to a tibble. If a predictor enters the model as part
85 of a matrix of covariates, such as when the model formula uses
86 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
87 as a matrix column.
9188
9289 We are in the process of defining behaviors for models fit with various
9390 \code{na.action} arguments, but make no guarantees about behavior when data is
3838 object with varying degrees of success.
3939
4040 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
41 \strong{same number of rows} as the passed dataset. This means that the
42 passed data must be coercible to a tibble. At this time, tibbles do not
43 support matrix-columns. This means you should not specify a matrix
44 of covariates in a model formula during the original model fitting
45 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
46 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
47 encounter errors, try explicitly passing a tibble, or fitting the original
48 model on data in a tibble.
41 \strong{same number of rows} as the passed dataset. This means that the passed
42 data must be coercible to a tibble. If a predictor enters the model as part
43 of a matrix of covariates, such as when the model formula uses
44 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
45 as a matrix column.
4946
5047 We are in the process of defining behaviors for models fit with various
5148 \code{na.action} arguments, but make no guarantees about behavior when data is
5050 object with varying degrees of success.
5151
5252 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
53 \strong{same number of rows} as the passed dataset. This means that the
54 passed data must be coercible to a tibble. At this time, tibbles do not
55 support matrix-columns. This means you should not specify a matrix
56 of covariates in a model formula during the original model fitting
57 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
58 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
59 encounter errors, try explicitly passing a tibble, or fitting the original
60 model on data in a tibble.
53 \strong{same number of rows} as the passed dataset. This means that the passed
54 data must be coercible to a tibble. If a predictor enters the model as part
55 of a matrix of covariates, such as when the model formula uses
56 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
57 as a matrix column.
6158
6259 We are in the process of defining behaviors for models fit with various
6360 \code{na.action} arguments, but make no guarantees about behavior when data is
6262 object with varying degrees of success.
6363
6464 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
65 \strong{same number of rows} as the passed dataset. This means that the
66 passed data must be coercible to a tibble. At this time, tibbles do not
67 support matrix-columns. This means you should not specify a matrix
68 of covariates in a model formula during the original model fitting
69 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
70 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
71 encounter errors, try explicitly passing a tibble, or fitting the original
72 model on data in a tibble.
65 \strong{same number of rows} as the passed dataset. This means that the passed
66 data must be coercible to a tibble. If a predictor enters the model as part
67 of a matrix of covariates, such as when the model formula uses
68 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
69 as a matrix column.
7370
7471 We are in the process of defining behaviors for models fit with various
7572 \code{na.action} arguments, but make no guarantees about behavior when data is
5757 object with varying degrees of success.
5858
5959 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
60 \strong{same number of rows} as the passed dataset. This means that the
61 passed data must be coercible to a tibble. At this time, tibbles do not
62 support matrix-columns. This means you should not specify a matrix
63 of covariates in a model formula during the original model fitting
64 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
65 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
66 encounter errors, try explicitly passing a tibble, or fitting the original
67 model on data in a tibble.
60 \strong{same number of rows} as the passed dataset. This means that the passed
61 data must be coercible to a tibble. If a predictor enters the model as part
62 of a matrix of covariates, such as when the model formula uses
63 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
64 as a matrix column.
6865
6966 We are in the process of defining behaviors for models fit with various
7067 \code{na.action} arguments, but make no guarantees about behavior when data is
7777 object with varying degrees of success.
7878
7979 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
80 \strong{same number of rows} as the passed dataset. This means that the
81 passed data must be coercible to a tibble. At this time, tibbles do not
82 support matrix-columns. This means you should not specify a matrix
83 of covariates in a model formula during the original model fitting
84 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
85 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
86 encounter errors, try explicitly passing a tibble, or fitting the original
87 model on data in a tibble.
80 \strong{same number of rows} as the passed dataset. This means that the passed
81 data must be coercible to a tibble. If a predictor enters the model as part
82 of a matrix of covariates, such as when the model formula uses
83 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
84 as a matrix column.
8885
8986 We are in the process of defining behaviors for models fit with various
9087 \code{na.action} arguments, but make no guarantees about behavior when data is
107104 \code{.se.fit} columns.
108105 }
109106 \examples{
107 \dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
110108
111109 library(ggplot2)
112110 library(dplyr)
180178 result <- lm(b ~ a)
181179
182180 tidy(result)
183
181 \dontshow{\}) # examplesIf}
184182 }
185183 \seealso{
186184 \link[stats:na.action]{stats::na.action}
6262 object with varying degrees of success.
6363
6464 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
65 \strong{same number of rows} as the passed dataset. This means that the
66 passed data must be coercible to a tibble. At this time, tibbles do not
67 support matrix-columns. This means you should not specify a matrix
68 of covariates in a model formula during the original model fitting
69 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
70 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
71 encounter errors, try explicitly passing a tibble, or fitting the original
72 model on data in a tibble.
65 \strong{same number of rows} as the passed dataset. This means that the passed
66 data must be coercible to a tibble. If a predictor enters the model as part
67 of a matrix of covariates, such as when the model formula uses
68 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
69 as a matrix column.
7370
7471 We are in the process of defining behaviors for models fit with various
7572 \code{na.action} arguments, but make no guarantees about behavior when data is
125125 object with varying degrees of success.
126126
127127 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
128 \strong{same number of rows} as the passed dataset. This means that the
129 passed data must be coercible to a tibble. At this time, tibbles do not
130 support matrix-columns. This means you should not specify a matrix
131 of covariates in a model formula during the original model fitting
132 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
133 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
134 encounter errors, try explicitly passing a tibble, or fitting the original
135 model on data in a tibble.
128 \strong{same number of rows} as the passed dataset. This means that the passed
129 data must be coercible to a tibble. If a predictor enters the model as part
130 of a matrix of covariates, such as when the model formula uses
131 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
132 as a matrix column.
136133
137134 We are in the process of defining behaviors for models fit with various
138135 \code{na.action} arguments, but make no guarantees about behavior when data is
6969 object with varying degrees of success.
7070
7171 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
72 \strong{same number of rows} as the passed dataset. This means that the
73 passed data must be coercible to a tibble. At this time, tibbles do not
74 support matrix-columns. This means you should not specify a matrix
75 of covariates in a model formula during the original model fitting
76 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
77 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
78 encounter errors, try explicitly passing a tibble, or fitting the original
79 model on data in a tibble.
72 \strong{same number of rows} as the passed dataset. This means that the passed
73 data must be coercible to a tibble. If a predictor enters the model as part
74 of a matrix of covariates, such as when the model formula uses
75 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
76 as a matrix column.
8077
8178 We are in the process of defining behaviors for models fit with various
8279 \code{na.action} arguments, but make no guarantees about behavior when data is
5151 object with varying degrees of success.
5252
5353 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
54 \strong{same number of rows} as the passed dataset. This means that the
55 passed data must be coercible to a tibble. At this time, tibbles do not
56 support matrix-columns. This means you should not specify a matrix
57 of covariates in a model formula during the original model fitting
58 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
59 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
60 encounter errors, try explicitly passing a tibble, or fitting the original
61 model on data in a tibble.
54 \strong{same number of rows} as the passed dataset. This means that the passed
55 data must be coercible to a tibble. If a predictor enters the model as part
56 of a matrix of covariates, such as when the model formula uses
57 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
58 as a matrix column.
6259
6360 We are in the process of defining behaviors for models fit with various
6461 \code{na.action} arguments, but make no guarantees about behavior when data is
4343 specify which components to return.
4444 }
4545 \examples{
46 \dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4647
4748 # fit model
4849 n <- nls(mpg ~ k * e^wt, data = mtcars, start = list(k = 1, e = 2))
6263 newdata$wt <- newdata$wt + 1
6364
6465 augment(n, newdata = newdata)
65
66 \dontshow{\}) # examplesIf}
6667 }
6768 \seealso{
6869 \code{\link[=augment]{augment()}}, \code{\link[quantreg:nlrq]{quantreg::nlrq()}}
6262 object with varying degrees of success.
6363
6464 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
65 \strong{same number of rows} as the passed dataset. This means that the
66 passed data must be coercible to a tibble. At this time, tibbles do not
67 support matrix-columns. This means you should not specify a matrix
68 of covariates in a model formula during the original model fitting
69 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
70 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
71 encounter errors, try explicitly passing a tibble, or fitting the original
72 model on data in a tibble.
65 \strong{same number of rows} as the passed dataset. This means that the passed
66 data must be coercible to a tibble. If a predictor enters the model as part
67 of a matrix of covariates, such as when the model formula uses
68 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
69 as a matrix column.
7370
7471 We are in the process of defining behaviors for models fit with various
7572 \code{na.action} arguments, but make no guarantees about behavior when data is
8077 a lack of support in stats::predict.nls().
8178 }
8279 \examples{
80 \dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
8381
8482 # fit model
8583 n <- nls(mpg ~ k * e^wt, data = mtcars, start = list(k = 1, e = 2))
9997 newdata$wt <- newdata$wt + 1
10098
10199 augment(n, newdata = newdata)
102
100 \dontshow{\}) # examplesIf}
103101 }
104102 \seealso{
105103 \link{tidy}, \code{\link[stats:nls]{stats::nls()}}, \code{\link[stats:predict.nls]{stats::predict.nls()}}
5757 object with varying degrees of success.
5858
5959 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
60 \strong{same number of rows} as the passed dataset. This means that the
61 passed data must be coercible to a tibble. At this time, tibbles do not
62 support matrix-columns. This means you should not specify a matrix
63 of covariates in a model formula during the original model fitting
64 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
65 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
66 encounter errors, try explicitly passing a tibble, or fitting the original
67 model on data in a tibble.
60 \strong{same number of rows} as the passed dataset. This means that the passed
61 data must be coercible to a tibble. If a predictor enters the model as part
62 of a matrix of covariates, such as when the model formula uses
63 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
64 as a matrix column.
6865
6966 We are in the process of defining behaviors for models fit with various
7067 \code{na.action} arguments, but make no guarantees about behavior when data is
7168 missing at this time.
7269 }
7370 \examples{
74 \dontshow{if ((rlang::is_installed("cluster") & rlang::is_installed("modeldata") && identical(Sys.getenv("NOT_CRAN"), "true"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
71 \dontshow{if ((rlang::is_installed(c("cluster", "modeldata", "ggplot2")) && identical(Sys.getenv("NOT_CRAN"), "true"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
7572
7673 # load libraries for models and data
7774 library(dplyr)
5757 object with varying degrees of success.
5858
5959 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
60 \strong{same number of rows} as the passed dataset. This means that the
61 passed data must be coercible to a tibble. At this time, tibbles do not
62 support matrix-columns. This means you should not specify a matrix
63 of covariates in a model formula during the original model fitting
64 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
65 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
66 encounter errors, try explicitly passing a tibble, or fitting the original
67 model on data in a tibble.
60 \strong{same number of rows} as the passed dataset. This means that the passed
61 data must be coercible to a tibble. If a predictor enters the model as part
62 of a matrix of covariates, such as when the model formula uses
63 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
64 as a matrix column.
6865
6966 We are in the process of defining behaviors for models fit with various
7067 \code{na.action} arguments, but make no guarantees about behavior when data is
5757 object with varying degrees of success.
5858
5959 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
60 \strong{same number of rows} as the passed dataset. This means that the
61 passed data must be coercible to a tibble. At this time, tibbles do not
62 support matrix-columns. This means you should not specify a matrix
63 of covariates in a model formula during the original model fitting
64 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
65 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
66 encounter errors, try explicitly passing a tibble, or fitting the original
67 model on data in a tibble.
60 \strong{same number of rows} as the passed dataset. This means that the passed
61 data must be coercible to a tibble. If a predictor enters the model as part
62 of a matrix of covariates, such as when the model formula uses
63 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
64 as a matrix column.
6865
6966 We are in the process of defining behaviors for models fit with various
7067 \code{na.action} arguments, but make no guarantees about behavior when data is
8279 included in the augmented output.
8380 }
8481 \examples{
85 \dontshow{if (rlang::is_installed("poLCA")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
82 \dontshow{if (rlang::is_installed(c("poLCA", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
8683
8784 # load libraries for models and data
8885 library(poLCA)
7272 object with varying degrees of success.
7373
7474 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
75 \strong{same number of rows} as the passed dataset. This means that the
76 passed data must be coercible to a tibble. At this time, tibbles do not
77 support matrix-columns. This means you should not specify a matrix
78 of covariates in a model formula during the original model fitting
79 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
80 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
81 encounter errors, try explicitly passing a tibble, or fitting the original
82 model on data in a tibble.
75 \strong{same number of rows} as the passed dataset. This means that the passed
76 data must be coercible to a tibble. If a predictor enters the model as part
77 of a matrix of covariates, such as when the model formula uses
78 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
79 as a matrix column.
8380
8481 We are in the process of defining behaviors for models fit with various
8582 \code{na.action} arguments, but make no guarantees about behavior when data is
6767 object with varying degrees of success.
6868
6969 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
70 \strong{same number of rows} as the passed dataset. This means that the
71 passed data must be coercible to a tibble. At this time, tibbles do not
72 support matrix-columns. This means you should not specify a matrix
73 of covariates in a model formula during the original model fitting
74 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
75 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
76 encounter errors, try explicitly passing a tibble, or fitting the original
77 model on data in a tibble.
70 \strong{same number of rows} as the passed dataset. This means that the passed
71 data must be coercible to a tibble. If a predictor enters the model as part
72 of a matrix of covariates, such as when the model formula uses
73 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
74 as a matrix column.
7875
7976 We are in the process of defining behaviors for models fit with various
8077 \code{na.action} arguments, but make no guarantees about behavior when data is
6666 object with varying degrees of success.
6767
6868 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
69 \strong{same number of rows} as the passed dataset. This means that the
70 passed data must be coercible to a tibble. At this time, tibbles do not
71 support matrix-columns. This means you should not specify a matrix
72 of covariates in a model formula during the original model fitting
73 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
74 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
75 encounter errors, try explicitly passing a tibble, or fitting the original
76 model on data in a tibble.
69 \strong{same number of rows} as the passed dataset. This means that the passed
70 data must be coercible to a tibble. If a predictor enters the model as part
71 of a matrix of covariates, such as when the model formula uses
72 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
73 as a matrix column.
7774
7875 We are in the process of defining behaviors for models fit with various
7976 \code{na.action} arguments, but make no guarantees about behavior when data is
5757 object with varying degrees of success.
5858
5959 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
60 \strong{same number of rows} as the passed dataset. This means that the
61 passed data must be coercible to a tibble. At this time, tibbles do not
62 support matrix-columns. This means you should not specify a matrix
63 of covariates in a model formula during the original model fitting
64 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
65 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
66 encounter errors, try explicitly passing a tibble, or fitting the original
67 model on data in a tibble.
60 \strong{same number of rows} as the passed dataset. This means that the passed
61 data must be coercible to a tibble. If a predictor enters the model as part
62 of a matrix of covariates, such as when the model formula uses
63 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
64 as a matrix column.
6865
6966 We are in the process of defining behaviors for models fit with various
7067 \code{na.action} arguments, but make no guarantees about behavior when data is
8484 object with varying degrees of success.
8585
8686 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
87 \strong{same number of rows} as the passed dataset. This means that the
88 passed data must be coercible to a tibble. At this time, tibbles do not
89 support matrix-columns. This means you should not specify a matrix
90 of covariates in a model formula during the original model fitting
91 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
92 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
93 encounter errors, try explicitly passing a tibble, or fitting the original
94 model on data in a tibble.
87 \strong{same number of rows} as the passed dataset. This means that the passed
88 data must be coercible to a tibble. If a predictor enters the model as part
89 of a matrix of covariates, such as when the model formula uses
90 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
91 as a matrix column.
9592
9693 We are in the process of defining behaviors for models fit with various
9794 \code{na.action} arguments, but make no guarantees about behavior when data is
6666 object with varying degrees of success.
6767
6868 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
69 \strong{same number of rows} as the passed dataset. This means that the
70 passed data must be coercible to a tibble. At this time, tibbles do not
71 support matrix-columns. This means you should not specify a matrix
72 of covariates in a model formula during the original model fitting
73 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
74 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
75 encounter errors, try explicitly passing a tibble, or fitting the original
76 model on data in a tibble.
69 \strong{same number of rows} as the passed dataset. This means that the passed
70 data must be coercible to a tibble. If a predictor enters the model as part
71 of a matrix of covariates, such as when the model formula uses
72 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
73 as a matrix column.
7774
7875 We are in the process of defining behaviors for models fit with various
7976 \code{na.action} arguments, but make no guarantees about behavior when data is
7474 object with varying degrees of success.
7575
7676 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
77 \strong{same number of rows} as the passed dataset. This means that the
78 passed data must be coercible to a tibble. At this time, tibbles do not
79 support matrix-columns. This means you should not specify a matrix
80 of covariates in a model formula during the original model fitting
81 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
82 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
83 encounter errors, try explicitly passing a tibble, or fitting the original
84 model on data in a tibble.
77 \strong{same number of rows} as the passed dataset. This means that the passed
78 data must be coercible to a tibble. If a predictor enters the model as part
79 of a matrix of covariates, such as when the model formula uses
80 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
81 as a matrix column.
8582
8683 We are in the process of defining behaviors for models fit with various
8784 \code{na.action} arguments, but make no guarantees about behavior when data is
7474 object with varying degrees of success.
7575
7676 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
77 \strong{same number of rows} as the passed dataset. This means that the
78 passed data must be coercible to a tibble. At this time, tibbles do not
79 support matrix-columns. This means you should not specify a matrix
80 of covariates in a model formula during the original model fitting
81 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
82 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
83 encounter errors, try explicitly passing a tibble, or fitting the original
84 model on data in a tibble.
77 \strong{same number of rows} as the passed dataset. This means that the passed
78 data must be coercible to a tibble. If a predictor enters the model as part
79 of a matrix of covariates, such as when the model formula uses
80 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
81 as a matrix column.
8582
8683 We are in the process of defining behaviors for models fit with various
8784 \code{na.action} arguments, but make no guarantees about behavior when data is
5353 object with varying degrees of success.
5454
5555 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
56 \strong{same number of rows} as the passed dataset. This means that the
57 passed data must be coercible to a tibble. At this time, tibbles do not
58 support matrix-columns. This means you should not specify a matrix
59 of covariates in a model formula during the original model fitting
60 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
61 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
62 encounter errors, try explicitly passing a tibble, or fitting the original
63 model on data in a tibble.
56 \strong{same number of rows} as the passed dataset. This means that the passed
57 data must be coercible to a tibble. If a predictor enters the model as part
58 of a matrix of covariates, such as when the model formula uses
59 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
60 as a matrix column.
6461
6562 We are in the process of defining behaviors for models fit with various
6663 \code{na.action} arguments, but make no guarantees about behavior when data is
3939 specify which components to return.
4040 }
4141 \examples{
42 \dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4243
4344 # fit model
4445 spl <- smooth.spline(mtcars$wt, mtcars$mpg, df = 4)
5455 geom_point() +
5556 geom_line(aes(y = .fitted))
5657
58 \dontshow{\}) # examplesIf}
5759 }
5860 \seealso{
5961 \code{\link[=augment]{augment()}}, \code{\link[stats:smooth.spline]{stats::smooth.spline()}},
6262 object with varying degrees of success.
6363
6464 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
65 \strong{same number of rows} as the passed dataset. This means that the
66 passed data must be coercible to a tibble. At this time, tibbles do not
67 support matrix-columns. This means you should not specify a matrix
68 of covariates in a model formula during the original model fitting
69 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
70 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
71 encounter errors, try explicitly passing a tibble, or fitting the original
72 model on data in a tibble.
65 \strong{same number of rows} as the passed dataset. This means that the passed
66 data must be coercible to a tibble. If a predictor enters the model as part
67 of a matrix of covariates, such as when the model formula uses
68 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
69 as a matrix column.
7370
7471 We are in the process of defining behaviors for models fit with various
7572 \code{na.action} arguments, but make no guarantees about behavior when data is
6666 object with varying degrees of success.
6767
6868 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
69 \strong{same number of rows} as the passed dataset. This means that the
70 passed data must be coercible to a tibble. At this time, tibbles do not
71 support matrix-columns. This means you should not specify a matrix
72 of covariates in a model formula during the original model fitting
73 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
74 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
75 encounter errors, try explicitly passing a tibble, or fitting the original
76 model on data in a tibble.
69 \strong{same number of rows} as the passed dataset. This means that the passed
70 data must be coercible to a tibble. If a predictor enters the model as part
71 of a matrix of covariates, such as when the model formula uses
72 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
73 as a matrix column.
7774
7875 We are in the process of defining behaviors for models fit with various
7976 \code{na.action} arguments, but make no guarantees about behavior when data is
55 \usage{
66 \method{augment}{survreg}(
77 x,
8 data = NULL,
8 data = model.frame(x),
99 newdata = NULL,
1010 type.predict = "response",
1111 type.residuals = "response",
7979 object with varying degrees of success.
8080
8181 The augmented dataset is always returned as a \link[tibble:tibble]{tibble::tibble} with the
82 \strong{same number of rows} as the passed dataset. This means that the
83 passed data must be coercible to a tibble. At this time, tibbles do not
84 support matrix-columns. This means you should not specify a matrix
85 of covariates in a model formula during the original model fitting
86 process, and that \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}} and
87 \code{\link[survival:Surv]{survival::Surv()}} objects are not supported in input data. If you
88 encounter errors, try explicitly passing a tibble, or fitting the original
89 model on data in a tibble.
82 \strong{same number of rows} as the passed dataset. This means that the passed
83 data must be coercible to a tibble. If a predictor enters the model as part
84 of a matrix of covariates, such as when the model formula uses
85 \code{\link[splines:ns]{splines::ns()}}, \code{\link[stats:poly]{stats::poly()}}, or \code{\link[survival:Surv]{survival::Surv()}}, it is represented
86 as a matrix column.
9087
9188 We are in the process of defining behaviors for models fit with various
9289 \code{na.action} arguments, but make no guarantees about behavior when data is
9390 missing at this time.
9491 }
9592 \examples{
96 \dontshow{if (rlang::is_installed("survival")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
93 \dontshow{if (rlang::is_installed(c("survival", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
9794
9895 # load libraries for models and data
9996 library(survival)
121121 \item Sergio Oller \email{sergioller@gmail.com} [contributor]
122122 \item Luke Sonnet \email{luke.sonnet@gmail.com} [contributor]
123123 \item Jim Hester \email{jim.hester@rstudio.com} [contributor]
124 \item Cory Brunson \email{cornelioid@gmail.com} [contributor]
125124 \item Ben Schneider \email{benjamin.julius.schneider@gmail.com} [contributor]
126125 \item Bernie Gray \email{bfgray3@gmail.com} (\href{https://orcid.org/0000-0001-9190-6032}{ORCID}) [contributor]
127126 \item Mara Averick \email{mara@rstudio.com} [contributor]
6767 throw an error.
6868 }
6969 \examples{
70 \dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
7071
7172 td <- tidy(mtcars)
7273 td
7879 ggplot(td, aes(mean, sd)) + geom_point() +
7980 geom_text(aes(label = column), hjust = 1, vjust = 1) +
8081 scale_x_log10() + scale_y_log10() + geom_abline()
81
82 \dontshow{\}) # examplesIf}
8283 }
8384 \seealso{
8485 Other deprecated:
4242 of the appropriate type.
4343 }
4444 \examples{
45 \dontshow{if (rlang::is_installed("binGroup")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
45 \dontshow{if (rlang::is_installed(c("binGroup", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4646
4747 # load libraries for models and data
4848 library(binGroup)
4242 of the appropriate type.
4343 }
4444 \examples{
45 \dontshow{if (rlang::is_installed("survival")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
45 \dontshow{if (rlang::is_installed(c("survival", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4646
4747 # load libraries for models and data
4848 library(survival)
4242 of the appropriate type.
4343 }
4444 \examples{
45 \dontshow{if (rlang::is_installed("survival")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
45 \dontshow{if (rlang::is_installed(c("survival", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4646
4747 # load libraries for models and data
4848 library(survival)
4242 of the appropriate type.
4343 }
4444 \examples{
45 \dontshow{if (rlang::is_installed("glmnet")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
45 \dontshow{if (rlang::is_installed(c("glmnet", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4646
4747 # load libraries for models and data
4848 library(glmnet)
4242 of the appropriate type.
4343 }
4444 \examples{
45 \dontshow{if (rlang::is_installed("glmnet")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
45 \dontshow{if (rlang::is_installed(c("glmnet", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4646
4747 # load libraries for models and data
4848 library(glmnet)
4242 of the appropriate type.
4343 }
4444 \examples{
45 \dontshow{if (rlang::is_installed("gmm")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
45 \dontshow{if (rlang::is_installed(c("gmm", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4646
4747 # load libraries for models and data
4848 library(gmm)
4242 of the appropriate type.
4343 }
4444 \examples{
45 \dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4546
4647 library(ggplot2)
4748 library(dplyr)
115116 result <- lm(b ~ a)
116117
117118 tidy(result)
118
119 \dontshow{\}) # examplesIf}
119120 }
120121 \seealso{
121122 \code{\link[=glance]{glance()}}, \code{\link[=glance.summary.lm]{glance.summary.lm()}}
4242 of the appropriate type.
4343 }
4444 \examples{
45 \dontshow{if (rlang::is_installed("lmodel2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
45 \dontshow{if (rlang::is_installed(c("lmodel2", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4646
4747 # load libraries for models and data
4848 library(lmodel2)
4242 of the appropriate type.
4343 }
4444 \examples{
45 \dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4546
4647 # fit model
4748 n <- nls(mpg ~ k * e^wt, data = mtcars, start = list(k = 1, e = 2))
6162 newdata$wt <- newdata$wt + 1
6263
6364 augment(n, newdata = newdata)
64
65 \dontshow{\}) # examplesIf}
6566 }
6667 \seealso{
6768 \link{tidy}, \code{\link[stats:nls]{stats::nls()}}
4242 of the appropriate type.
4343 }
4444 \examples{
45 \dontshow{if ((rlang::is_installed("cluster") & rlang::is_installed("modeldata") && identical(Sys.getenv("NOT_CRAN"), "true"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
45 \dontshow{if ((rlang::is_installed(c("cluster", "modeldata", "ggplot2")) && identical(Sys.getenv("NOT_CRAN"), "true"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4646
4747 # load libraries for models and data
4848 library(dplyr)
4242 of the appropriate type.
4343 }
4444 \examples{
45 \dontshow{if (rlang::is_installed("poLCA")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
45 \dontshow{if (rlang::is_installed(c("poLCA", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4646
4747 # load libraries for models and data
4848 library(poLCA)
4646 returned rather than printed.
4747 }
4848 \examples{
49 \dontshow{if (rlang::is_installed("MASS")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
49 \dontshow{if (rlang::is_installed(c("MASS", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
5050
5151 # load libraries for models and data
5252 library(MASS)
3030 specify which components to return.
3131 }
3232 \examples{
33 \dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3334
3435 # fit model
3536 spl <- smooth.spline(mtcars$wt, mtcars$mpg, df = 4)
4546 geom_point() +
4647 geom_line(aes(y = .fitted))
4748
49 \dontshow{\}) # examplesIf}
4850 }
4951 \seealso{
5052 \code{\link[=augment]{augment()}}, \code{\link[stats:smooth.spline]{stats::smooth.spline()}}
4949 non-summary method (e.g. AIC and BIC will be missing.)
5050 }
5151 \examples{
52 \dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
5253
5354 library(ggplot2)
5455 library(dplyr)
122123 result <- lm(b ~ a)
123124
124125 tidy(result)
125
126 \dontshow{\}) # examplesIf}
126127 }
127128 \seealso{
128129 \code{\link[=glance]{glance()}}, \code{\link[=glance.summary.lm]{glance.summary.lm()}}
3232 of the appropriate type.
3333 }
3434 \examples{
35 \dontshow{if (rlang::is_installed("survival")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
35 \dontshow{if (rlang::is_installed(c("survival", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3636
3737 # load libraries for models and data
3838 library(survival)
4242 of the appropriate type.
4343 }
4444 \examples{
45 \dontshow{if (rlang::is_installed("survival")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
45 \dontshow{if (rlang::is_installed(c("survival", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4646
4747 # load libraries for models and data
4848 library(survival)
3131 specify which components to return.
3232 }
3333 \examples{
34
35 if (requireNamespace("binGroup", quietly = TRUE)) {
34 \dontshow{if (rlang::is_installed(c("binGroup", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3635
3736 library(binGroup)
3837 des <- binDesign(
4847 ggplot(tidy(des), aes(n, power)) +
4948 geom_line()
5049
51 }
52
50 \dontshow{\}) # examplesIf}
5351 }
5452 \seealso{
5553 \code{\link[=tidy]{tidy()}}, \code{\link[binGroup:binDesign]{binGroup::binDesign()}}
3333 specify which components to return.
3434 }
3535 \examples{
36 \dontshow{if (rlang::is_installed("survival")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
36 \dontshow{if (rlang::is_installed(c("survival", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3737
3838 # load libraries for models and data
3939 library(survival)
3131 specify which components to return.
3232 }
3333 \examples{
34 \dontshow{if (rlang::is_installed("multcomp")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
34 \dontshow{if (rlang::is_installed(c("multcomp", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3535
3636 # load libraries for models and data
3737 library(multcomp)
3232 specify which components to return.
3333 }
3434 \examples{
35 \dontshow{if (rlang::is_installed("multcomp")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
35 \dontshow{if (rlang::is_installed(c("multcomp", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3636
3737 # load libraries for models and data
3838 library(multcomp)
4343 specify which components to return.
4444 }
4545 \examples{
46 \dontshow{if (rlang::is_installed("survival")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
46 \dontshow{if (rlang::is_installed(c("survival", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4747
4848 # load libraries for models and data
4949 library(survival)
3030 specify which components to return.
3131 }
3232 \examples{
33 \dontshow{if (rlang::is_installed("glmnet")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
33 \dontshow{if (rlang::is_installed(c("glmnet", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3434
3535 # load libraries for models and data
3636 library(glmnet)
3636 passed on to \code{\link[emmeans:summary.emmGrid]{emmeans::summary.emmGrid()}} or \code{\link[lsmeans:ref.grid]{lsmeans::summary.ref.grid()}}.
3737 }
3838 \examples{
39 \dontshow{if (rlang::is_installed("emmeans")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
39 \dontshow{if (rlang::is_installed(c("emmeans", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4040
4141 # load libraries for models and data
4242 library(emmeans)
3838 specify which components to return.
3939 }
4040 \examples{
41 \dontshow{if (rlang::is_installed("multcomp")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
41 \dontshow{if (rlang::is_installed(c("multcomp", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4242
4343 # load libraries for models and data
4444 library(multcomp)
4545 choice of lambda.
4646 }
4747 \examples{
48 \dontshow{if (rlang::is_installed("glmnet")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
48 \dontshow{if (rlang::is_installed(c("glmnet", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4949
5050 # load libraries for models and data
5151 library(glmnet)
4343 specify which components to return.
4444 }
4545 \examples{
46 \dontshow{if (rlang::is_installed("gmm")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
46 \dontshow{if (rlang::is_installed(c("gmm", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4747
4848 # load libraries for models and data
4949 library(gmm)
3737 to \code{\link[psych:kappa]{psych::cohen.kappa()}} when creating the \code{kappa} object.
3838 }
3939 \examples{
40 \dontshow{if (rlang::is_installed("psych")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
40 \dontshow{if (rlang::is_installed(c("psych", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4141
4242 # load libraries for models and data
4343 library(psych)
3737 on the output to return to a wide format.
3838 }
3939 \examples{
40 \dontshow{if (rlang::is_installed("ks")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
40 \dontshow{if (rlang::is_installed(c("ks", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4141
4242 # load libraries for models and data
4343 library(ks)
4747 there is an additional column \code{response}. See \code{\link[=tidy.mlm]{tidy.mlm()}}.
4848 }
4949 \examples{
50 \dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
5051
5152 library(ggplot2)
5253 library(dplyr)
120121 result <- lm(b ~ a)
121122
122123 tidy(result)
123
124 \dontshow{\}) # examplesIf}
124125 }
125126 \seealso{
126127 \code{\link[=tidy]{tidy()}}, \code{\link[stats:summary.lm]{stats::summary.lm()}}
4242 \code{vignette("mod2user", package = "lmodel2")}.
4343 }
4444 \examples{
45 \dontshow{if (rlang::is_installed("lmodel2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
45 \dontshow{if (rlang::is_installed(c("lmodel2", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4646
4747 # load libraries for models and data
4848 library(lmodel2)
3737 passed on to \code{\link[emmeans:summary.emmGrid]{emmeans::summary.emmGrid()}} or \code{\link[lsmeans:ref.grid]{lsmeans::summary.ref.grid()}}.
3838 }
3939 \examples{
40 \dontshow{if (rlang::is_installed("emmeans")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
40 \dontshow{if (rlang::is_installed(c("emmeans", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4141
4242 # load libraries for models and data
4343 library(emmeans)
3131 specify which components to return.
3232 }
3333 \examples{
34 \dontshow{if (rlang::is_installed("maps")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
34 \dontshow{if (rlang::is_installed(c("maps", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3535
3636 # load libraries for models and data
3737 library(maps)
3838 specify which components to return.
3939 }
4040 \examples{
41 \dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4142
4243 # fit model
4344 n <- nls(mpg ~ k * e^wt, data = mtcars, start = list(k = 1, e = 2))
5758 newdata$wt <- newdata$wt + 1
5859
5960 augment(n, newdata = newdata)
60
61 \dontshow{\}) # examplesIf}
6162 }
6263 \seealso{
6364 \link{tidy}, \code{\link[stats:nls]{stats::nls()}}, \code{\link[stats:summary.nls]{stats::summary.nls()}}
3737 For examples, see the pam vignette.
3838 }
3939 \examples{
40 \dontshow{if ((rlang::is_installed("cluster") & rlang::is_installed("modeldata") && identical(Sys.getenv("NOT_CRAN"), "true"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
40 \dontshow{if ((rlang::is_installed(c("cluster", "modeldata", "ggplot2")) && identical(Sys.getenv("NOT_CRAN"), "true"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4141
4242 # load libraries for models and data
4343 library(dplyr)
3131 specify which components to return.
3232 }
3333 \examples{
34 \dontshow{if (rlang::is_installed("poLCA")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
34 \dontshow{if (rlang::is_installed(c("poLCA", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3535
3636 # load libraries for models and data
3737 library(poLCA)
3131 specify which components to return.
3232 }
3333 \examples{
34 \dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3435
3536 ptt <- power.t.test(n = 2:30, delta = 1)
3637 tidy(ptt)
3940
4041 ggplot(tidy(ptt), aes(n, power)) +
4142 geom_line()
43 \dontshow{\}) # examplesIf}
4244 }
4345 \seealso{
4446 \code{\link[stats:power.t.test]{stats::power.t.test()}}
8282 that SVD is only equivalent to PCA on centered data.
8383 }
8484 \examples{
85 \dontshow{if (rlang::is_installed("maps")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
85 \dontshow{if (rlang::is_installed(c("maps", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
8686
8787 pc <- prcomp(USArrests, scale = TRUE)
8888
4343 output.
4444 }
4545 \examples{
46 \dontshow{if (rlang::is_installed("Hmisc")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
46 \dontshow{if (rlang::is_installed(c("Hmisc", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4747
4848 # load libraries for models and data
4949 library(Hmisc)
3636 passed on to \code{\link[emmeans:summary.emmGrid]{emmeans::summary.emmGrid()}} or \code{\link[lsmeans:ref.grid]{lsmeans::summary.ref.grid()}}.
3737 }
3838 \examples{
39 \dontshow{if (rlang::is_installed("emmeans")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
39 \dontshow{if (rlang::is_installed(c("emmeans", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4040
4141 # load libraries for models and data
4242 library(emmeans)
3131 specify which components to return.
3232 }
3333 \examples{
34 \dontshow{if (rlang::is_installed("MASS")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
34 \dontshow{if (rlang::is_installed(c("MASS", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3535
3636 # load libraries for models and data
3737 library(MASS)
3232 specify which components to return.
3333 }
3434 \examples{
35 \dontshow{if (rlang::is_installed("AUC")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
35 \dontshow{if (rlang::is_installed(c("AUC", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3636
3737 # load libraries for models and data
3838 library(AUC)
3030 specify which components to return.
3131 }
3232 \examples{
33 \dontshow{if (rlang::is_installed("ggplot2")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3334
3435 spc <- spectrum(lh)
3536 tidy(spc)
3738 library(ggplot2)
3839 ggplot(tidy(spc), aes(freq, spec)) +
3940 geom_line()
41 \dontshow{\}) # examplesIf}
4042 }
4143 \seealso{
4244 \code{\link[=tidy]{tidy()}}, \code{\link[stats:spectrum]{stats::spectrum()}}
3232 specify which components to return.
3333 }
3434 \examples{
35 \dontshow{if (rlang::is_installed("multcomp")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
35 \dontshow{if (rlang::is_installed(c("multcomp", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3636
3737 # load libraries for models and data
3838 library(multcomp)
3131 passed on to \code{\link[emmeans:summary.emmGrid]{emmeans::summary.emmGrid()}} or \code{\link[lsmeans:ref.grid]{lsmeans::summary.ref.grid()}}.
3232 }
3333 \examples{
34 \dontshow{if (rlang::is_installed("emmeans")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
34 \dontshow{if (rlang::is_installed(c("emmeans", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3535
3636 # load libraries for models and data
3737 library(emmeans)
3131 specify which components to return.
3232 }
3333 \examples{
34 \dontshow{if (rlang::is_installed("survival")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
34 \dontshow{if (rlang::is_installed(c("survival", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3535
3636 # load libraries for models and data
3737 library(survival)
3838 specify which components to return.
3939 }
4040 \examples{
41 \dontshow{if (rlang::is_installed("survival")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
41 \dontshow{if (rlang::is_installed(c("survival", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
4242
4343 # load libraries for models and data
4444 library(survival)
3131 specify which components to return.
3232 }
3333 \examples{
34 \dontshow{if (rlang::is_installed("zoo")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
34 \dontshow{if (rlang::is_installed(c("zoo", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
3535
3636 # load libraries for models and data
3737 library(zoo)
7575 A very thin wrapper around \code{\link[=tidy_svd]{tidy_svd()}}.
7676 }
7777 \examples{
78 \dontshow{if (rlang::is_installed("modeldata")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
78 \dontshow{if (rlang::is_installed(c("modeldata", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
7979
8080 library(modeldata)
8181 data(hpc_data)
8888 that SVD is only equivalent to PCA on centered data.
8989 }
9090 \examples{
91 \dontshow{if (rlang::is_installed("modeldata")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
91 \dontshow{if (rlang::is_installed(c("modeldata", "ggplot2"))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
9292
9393 library(modeldata)
9494 data(hpc_data)
+0
-19
tests/testthat/test-aaa-documentation-helper.R less more
0 context("test-aaa-documentation-helper")
1
2 skip("documentation helper tests not yet written")
3
4 test_that("warns user when column doesn't exist", {
5
6 })
7
8 test_that("no named arguments", {
9
10 })
11
12 test_that("only named arguments", {
13
14 })
15
16 test_that("mix of named arguments and logical switches", {
17
18 })
3535 })
3636
3737 test_that("augment.pam", {
38 check_augment_function(
39 aug = augment.pam,
40 model = fit,
41 data = x,
42 newdata = x
38 suppressWarnings(
39 check_augment_function(
40 aug = augment.pam,
41 model = fit,
42 data = x,
43 newdata = x
44 )
4345 )
4446 })
101101 })
102102
103103 test_that("augment.felm", {
104 check_augment_function(
105 aug = augment.felm,
106 model = fit,
107 data = df
104 suppressWarnings(
105 check_augment_function(
106 aug = augment.felm,
107 model = fit,
108 data = df
109 )
108110 )
109111
110 check_augment_function(
111 aug = augment.felm,
112 model = fit2,
113 data = df
112 suppressWarnings(
113 check_augment_function(
114 aug = augment.felm,
115 model = fit2,
116 data = df
117 )
114118 )
115119
116 check_augment_function(
117 aug = augment.felm,
118 model = fit_form,
119 data = df
120 suppressWarnings(
121 check_augment_function(
122 aug = augment.felm,
123 model = fit_form,
124 data = df
125 )
120126 )
127
121128 expect_error(augment(fit_multi),
122129 "Augment does not support linear models with multiple responses.")
123130
5656 })
5757
5858 test_that("augment.Mclust", {
59 check_augment_function(
60 aug = augment.Mclust,
61 model = fit,
62 data = dat,
63 newdata = dat
59 suppressWarnings(
60 check_augment_function(
61 aug = augment.Mclust,
62 model = fit,
63 data = dat,
64 newdata = dat
65 )
6466 )
6567
66 check_augment_function(
67 aug = augment.Mclust,
68 model = fit2,
69 data = dat,
70 newdata = dat
68 suppressWarnings(
69 check_augment_function(
70 aug = augment.Mclust,
71 model = fit2,
72 data = dat,
73 newdata = dat
74 )
7175 )
7276
7377 check_augment_function(
6868 gl_logitmfx <- glance(fit_logitmfx)
6969 check_glance_outputs(gl_logitmfx)
7070 # negbin
71 gl_negbinmfx <- glance(fit_negbinmfx)
71 suppressWarnings(
72 gl_negbinmfx <- glance(fit_negbinmfx)
73 )
7274 check_glance_outputs(gl_negbinmfx)
7375 # poisson
7476 gl_poissonmfx <- glance(fit_poissonmfx)
3535 })
3636
3737 test_that("augment.gam", {
38 check_augment_function(
39 augment.gam,
40 fit,
41 data = ChickWeight,
42 newdata = ChickWeight
38 suppressWarnings(
39 check_augment_function(
40 augment.gam,
41 fit,
42 data = ChickWeight,
43 newdata = ChickWeight
44 )
4345 )
4446 })
88 skip_if_not_installed("survival") # does this skip with base R?
99
1010 library(muhaz)
11 data(ovarian, package = "survival")
11
12 # load the ovarian data
13 data(cancer, package = "survival")
1214
1315 fit <- muhaz(ovarian$futime, ovarian$fustat)
1416
4545 gl <- glance(fit)
4646 check_glance_outputs(gl)
4747
48 gl_rd <- glance(fit_rd)
48 suppressWarnings(
49 gl_rd <- glance(fit_rd)
50 )
51
4952 check_glance_outputs(gl_rd)
5053 })
5154
4949
5050
5151 test_that("augment.glm", {
52 skip("come back to glm augment checks")
53
5452 check_augment_function(
5553 aug = augment.glm,
5654 model = gfit,
6462 data = mtcars,
6563 newdata = mtcars
6664 )
67
68 check_augment_function(
69 aug = augment.glm,
70 model = gfit3,
71 data = mtcars,
72 newdata = mtcars
73 )
7465 })
5858 })
5959
6060 test_that("augment.coxph", {
61 expect_error(
62 augment(fit),
63 regexp = "Must specify either `data` or `newdata` argument."
64 )
65
6661 check_augment_function(
6762 aug = augment.coxph,
6863 model = fit,
3737 })
3838
3939 test_that("augment.survreg", {
40 expect_error(
41 augment(sr),
42 regexp = "Must specify either `data` or `newdata` argument."
43 )
44
4540 check_augment_function(
4641 aug = augment.survreg,
4742 model = sr,
3434 )
3535 })
3636
37 skip("specification not yet complete")
37 test_that("augment_newdata can handle function calls in response term (lm)", {
38 mt_lm <- lm(data = mtcars, mpg ~ hp)
39 mt_lm_log <- lm(data = mtcars, log(mpg) ~ hp)
3840
39 skip_if_not_installed("betareg")
40 library(betareg)
41 aug_mt_lm_none <- augment(mt_lm)
42 aug_mt_lm_data <- augment(mt_lm, data = mtcars)
43 aug_mt_lm_newdata <- augment(mt_lm, newdata = mtcars[1:20,])
44 aug_mt_lm_no_resp <- augment(mt_lm, newdata = mtcars[1:20, 2:ncol(mtcars)])
45
46 aug_mt_lm_log_none <- augment(mt_lm_log)
47 aug_mt_lm_log_data <- augment(mt_lm_log, data = mtcars)
48 aug_mt_lm_log_newdata <- augment(mt_lm_log, newdata = mtcars[1:20,])
49 aug_mt_lm_log_no_resp <- augment(mt_lm_log, newdata = mtcars[1:20, 2:ncol(mtcars)])
50
51 expect_true(inherits(aug_mt_lm_log_none, "tbl_df"))
52 expect_true(inherits(aug_mt_lm_log_data, "tbl_df"))
53 expect_true(inherits(aug_mt_lm_log_newdata, "tbl_df"))
54 expect_true(inherits(aug_mt_lm_log_no_resp, "tbl_df"))
55
56 expect_equal(".resid" %in% colnames(aug_mt_lm_log_none), ".resid" %in% colnames(aug_mt_lm_none))
57 expect_equal(".resid" %in% colnames(aug_mt_lm_log_data), ".resid" %in% colnames(aug_mt_lm_data))
58 expect_equal(".resid" %in% colnames(aug_mt_lm_log_newdata), ".resid" %in% colnames(aug_mt_lm_newdata))
59 expect_equal(".resid" %in% colnames(aug_mt_lm_log_no_resp), ".resid" %in% colnames(aug_mt_lm_no_resp))
4160
42 test_that("validate_augment_input", {
43 data(GasolineYield)
44
45 model <- lm(hp ~ ., mtcars)
46 poly_m <- lm(hp ~ poly(mpg, 2), mtcars) # augment(poly_m) works
47
48 # augment(m3) breaks. it's possible that it wouldn't with a better
49 # implementation, in which case we'd want something here
50 # where it's imperative to specify either data or newdata to
51 # prevent an explosion
52
53 m3 <- betareg(yield ~ poly(temp, 2), GasolineYield)
54
55 expect_warning(
56 validate_augment_input(model, data = mtcars, newdata = mtcars),
57 regexp = "Both `data` and `newdata` have been specified. Ignoring `data`."
58 )
59
60 expect_warning(
61 validate_augment_input(poly_m, mtcars[, 1:3]),
62 "`data` might not contain columns present in original data."
63 )
64
65 extra_rows <- bind_rows(mtcars, head(mtcars))
66
67 expect_warning(
68 validate_augment_input(model, extra_rows),
69 regexp = paste(
70 "`data` must contain all rows passed to the original modelling",
71 "function with no extras rows."
72 )
73 )
74
75 expect_message(
76 validate_augment_input(m3),
77 regexp = paste0(
78 "Neither `data` nor `newdata` has been specified.\n",
79 "Attempting to reconstruct original data."
80 )
81 )
82
83 expect_error(
84 validate_augment_input(m3, model.frame(m3)),
85 regexp = paste0(
86 "`data` is malformed: must be coercable to a tibble.\n",
87 "Did you pass `data` the data originally used to fit your model?"
88 )
89 )
90
91 expect_error(
92 validate_augment_input(model, 1L),
93 regexp = "`data` argument must be a tibble or dataframe."
94 )
95
96 expect_error(
97 validate_augment_input(model, newdata = 1L),
98 regexp = "`newdata` argument must be a tibble or dataframe."
99 )
61 expect_equal(aug_mt_lm_log_none$.resid, log(mtcars$mpg) - unname(fitted(mt_lm_log, mtcars)))
62 expect_equal(aug_mt_lm_log_data$.resid, log(mtcars$mpg) - unname(fitted(mt_lm_log, mtcars)))
63 expect_equal(aug_mt_lm_log_newdata$.resid, log(mtcars$mpg[1:20]) - unname(predict(mt_lm_log, mtcars[1:20,])))
10064 })
10165
66 test_that("augment_newdata can handle function calls in response term (glm)", {
67 mt_glm <- glm(data = mtcars, mpg ~ .)
68 mt_glm_log <- glm(data = mtcars, log(mpg) ~ .)
69
70 aug_mt_glm_none <- augment(mt_glm)
71 aug_mt_glm_data <- augment(mt_glm, data = mtcars)
72 aug_mt_glm_newdata <- augment(mt_glm, newdata = mtcars[1:20,])
73 aug_mt_glm_no_resp <- augment(mt_glm, newdata = mtcars[1:20, 2:ncol(mtcars)])
74
75 aug_mt_glm_log_none <- augment(mt_glm_log)
76 aug_mt_glm_log_data <- augment(mt_glm_log, data = mtcars)
77 aug_mt_glm_log_newdata <- augment(mt_glm_log, newdata = mtcars[1:20,])
78 aug_mt_glm_log_no_resp <- augment(mt_glm_log, newdata = mtcars[1:20, 2:ncol(mtcars)])
79
80 expect_true(inherits(aug_mt_glm_log_none, "tbl_df"))
81 expect_true(inherits(aug_mt_glm_log_data, "tbl_df"))
82 expect_true(inherits(aug_mt_glm_log_newdata, "tbl_df"))
83 expect_true(inherits(aug_mt_glm_log_no_resp, "tbl_df"))
84
85 expect_equal(".resid" %in% colnames(aug_mt_glm_log_none), ".resid" %in% colnames(aug_mt_glm_none))
86 expect_equal(".resid" %in% colnames(aug_mt_glm_log_data), ".resid" %in% colnames(aug_mt_glm_data))
87 expect_equal(".resid" %in% colnames(aug_mt_glm_log_newdata), ".resid" %in% colnames(aug_mt_glm_newdata))
88 expect_equal(".resid" %in% colnames(aug_mt_glm_log_no_resp), ".resid" %in% colnames(aug_mt_glm_no_resp))
89
90 expect_equal(aug_mt_glm_log_none$.resid, log(mtcars$mpg) - unname(fitted(mt_glm_log, mtcars)))
91 expect_equal(aug_mt_glm_log_data$.resid, log(mtcars$mpg) - unname(fitted(mt_glm_log, mtcars)))
92 })
93
94 test_that("augment_newdata can handle function calls in response term (loess)", {
95 mt_loess <- loess(data = mtcars, mpg ~ hp + disp)
96 mt_loess_log <- loess(data = mtcars, log(mpg) ~ hp + disp)
97
98 aug_mt_loess_none <- augment(mt_loess)
99 aug_mt_loess_data <- augment(mt_loess, data = mtcars)
100 aug_mt_loess_newdata <- augment(mt_loess, newdata = mtcars[1:20,])
101 aug_mt_loess_no_resp <- augment(mt_loess, newdata = mtcars[1:20, 2:ncol(mtcars)])
102
103 aug_mt_loess_log_none <- augment(mt_loess_log)
104 aug_mt_loess_log_data <- augment(mt_loess_log, data = mtcars)
105 aug_mt_loess_log_newdata <- augment(mt_loess_log, newdata = mtcars[1:20,])
106 aug_mt_loess_log_no_resp <- augment(mt_loess_log, newdata = mtcars[1:20, 2:ncol(mtcars)])
107
108 expect_true(inherits(aug_mt_loess_log_none, "tbl_df"))
109 expect_true(inherits(aug_mt_loess_log_data, "tbl_df"))
110 expect_true(inherits(aug_mt_loess_log_newdata, "tbl_df"))
111 expect_true(inherits(aug_mt_loess_log_no_resp, "tbl_df"))
112
113 expect_equal(".resid" %in% colnames(aug_mt_loess_log_none), ".resid" %in% colnames(aug_mt_loess_none))
114 expect_equal(".resid" %in% colnames(aug_mt_loess_log_data), ".resid" %in% colnames(aug_mt_loess_data))
115 expect_equal(".resid" %in% colnames(aug_mt_loess_log_newdata), ".resid" %in% colnames(aug_mt_loess_newdata))
116 expect_equal(".resid" %in% colnames(aug_mt_loess_log_no_resp), ".resid" %in% colnames(aug_mt_loess_no_resp))
117
118 expect_equal(aug_mt_loess_log_none$.resid, log(mtcars$mpg) - unname(fitted(mt_loess_log, mtcars)))
119 expect_equal(aug_mt_loess_log_data$.resid, log(mtcars$mpg) - unname(fitted(mt_loess_log, mtcars)))
120 expect_equal(aug_mt_loess_log_newdata$.resid, log(mtcars$mpg[1:20]) - unname(predict(mt_loess_log, mtcars[1:20,])))
121 })
102122
103123 test_that("as_glance_tibble", {
104
105124 df1 <- as_glance_tibble(x = 1, y = 1, na_types = "rr")
106125 df2 <- as_glance_tibble(x = 1, y = NULL, na_types = "rc")
107126 df3 <- as_glance_tibble(x = 1, y = NULL, na_types = "rr")
108127
109128 expect_equal(purrr::map(df1, class),
110 purrr::map(df2, class))
129 purrr::map(df3, class))
111130
112 expect_true(class(df1$y) == class(df2$y))
131 expect_true(class(df1$y) == class(df3$y))
113132
114 expect_false(class(df2$y) == class(df3$y))
133 expect_false(class(df1$y) == class(df2$y))
115134
116135 expect_error(
117136 as_glance_tibble(x = 1, y = 1, na_types = "rrr")
118137 )
119
120138 })
121139
122140 test_that("appropriate warning on (g)lm-subclassed models", {
99
1010 ```{r setup, include = FALSE}
1111 knitr::opts_chunk$set(message = FALSE, warning = FALSE)
12
13 if (rlang::is_installed("ggplot2")) {
14 run <- TRUE
15 } else {
16 run <- FALSE
17 }
18
19 knitr::opts_chunk$set(
20 eval = run
21 )
1222 ```
1323
1424 # broom and dplyr