-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New issue #1
Comments
Can you provide a reprex? |
library(mice)
#>
#> Attaching package: 'mice'
#> The following object is masked from 'package:stats':
#>
#> filter
#> The following objects are masked from 'package:base':
#>
#> cbind, rbind
library(magrittr)
library(purrr)
#>
#> Attaching package: 'purrr'
#> The following object is masked from 'package:magrittr':
#>
#> set_names
imp <- nhanes %>% mice(print = FALSE)
imp |>
complete("all") %>%
map(~.x %$% lm(bmi ~ chl + hyp)) |>
pool()
#> Class: mipo m = 5
#> term m estimate ubar b t dfcom
#> 1 (Intercept) 5 21.06440728 1.423828e+01 2.789807e+00 1.758605e+01 22
#> 2 chl 5 0.03840044 3.987722e-04 6.156188e-05 4.726464e-04 22
#> 3 hyp 5 -1.54059648 3.736178e+00 3.452248e-01 4.150448e+00 22
#> df riv lambda fmi
#> 1 14.26866 0.2351245 0.19036500 0.2841343
#> 2 15.46375 0.1852543 0.15629920 0.2476892
#> 3 17.42887 0.1108806 0.09981326 0.1879422
sessionInfo()
#> R version 4.3.0 (2023-04-21)
#> Platform: aarch64-apple-darwin20 (64-bit)
#> Running under: macOS Ventura 13.6
#>
#> Matrix products: default
#> BLAS: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib
#> LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0
#>
#> locale:
#> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
#>
#> time zone: Europe/Amsterdam
#> tzcode source: internal
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> other attached packages:
#> [1] purrr_1.0.1 magrittr_2.0.3 mice_3.15.3
#>
#> loaded via a namespace (and not attached):
#> [1] dplyr_1.1.2 compiler_4.3.0 reprex_2.0.2 tidyselect_1.2.0
#> [5] Rcpp_1.0.11 tidyr_1.3.0 yaml_2.3.7 fastmap_1.1.1
#> [9] lattice_0.21-8 R6_2.5.1 generics_0.1.3 knitr_1.43
#> [13] backports_1.4.1 tibble_3.2.1 R.cache_0.16.0 pillar_1.9.0
#> [17] R.utils_2.12.2 rlang_1.1.1 utf8_1.2.3 broom_1.0.4
#> [21] xfun_0.39 fs_1.6.2 cli_3.6.1 withr_2.5.0
#> [25] grid_4.3.0 digest_0.6.31 rstudioapi_0.14 lifecycle_1.0.3
#> [29] R.methodsS3_1.8.2 R.oo_1.25.0 vctrs_0.6.2 evaluate_0.21
#> [33] glue_1.6.2 styler_1.10.2 fansi_1.0.4 rmarkdown_2.22
#> [37] tools_4.3.0 pkgconfig_2.0.3 htmltools_0.5.5 Created on 2023-09-27 with reprex v2.0.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, I have a question:
When I run the following. I get an error.
imp %$%
complete("all") %>%
map(~.x %$% lm(bmi ~ chl + hyp)) |>
pool()
The text was updated successfully, but these errors were encountered: