Chapter 6 Missing data
6.1 Per variable missingness
Number and percentage of missing.
Variable | Missing (count) | Missing (%) |
---|---|---|
cc | 611 | 3.02 |
sbp | 320 | 1.58 |
rr | 191 | 0.95 |
hr | 137 | 0.68 |
gcs | 23 | 0.11 |
injurytime | 11 | 0.05 |
age | 4 | 0.02 |
sex | 1 | 0.00 |
injurytype | 0 | 0.00 |
6.3 (In)complete cases
This section presents patients with a least one missing value. First we list out patients with at least one missing value in a filterable table.
Then we report the pattern of missing for this set of patients.
6.4 Section session info
## R version 4.1.3 (2022-03-10)
## Platform: x86_64-w64-mingw32/x64 (64-bit)
## Running under: Windows 10 x64 (build 17763)
##
## Matrix products: default
##
## locale:
## [1] LC_COLLATE=English_Austria.1252 LC_CTYPE=English_Austria.1252
## [3] LC_MONETARY=English_Austria.1252 LC_NUMERIC=C
## [5] LC_TIME=English_Austria.1252
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] DT_0.22 kableExtra_1.3.4 gt_0.4.0 naniar_0.6.1
## [5] Hmisc_4.6-0 Formula_1.2-4 survival_3.2-13 lattice_0.20-45
## [9] forcats_0.5.1 stringr_1.4.0 dplyr_1.0.8 purrr_0.3.4
## [13] readr_2.1.2 tidyr_1.2.0 tibble_3.1.6 ggplot2_3.3.5
## [17] tidyverse_1.3.1 here_1.0.1
##
## loaded via a namespace (and not attached):
## [1] fs_1.5.2 lubridate_1.8.0 webshot_0.5.2
## [4] RColorBrewer_1.1-2 httr_1.4.2 UpSetR_1.4.0
## [7] rprojroot_2.0.2 tools_4.1.3 backports_1.4.1
## [10] bslib_0.3.1 utf8_1.2.2 R6_2.5.1
## [13] rpart_4.1.16 DBI_1.1.2 colorspace_2.0-3
## [16] nnet_7.3-17 withr_2.5.0 tidyselect_1.1.2
## [19] gridExtra_2.3 compiler_4.1.3 cli_3.2.0
## [22] rvest_1.0.2 htmlTable_2.4.0 xml2_1.3.3
## [25] labeling_0.4.2 bookdown_0.25 sass_0.4.1
## [28] scales_1.1.1 checkmate_2.0.0 commonmark_1.8.0
## [31] systemfonts_1.0.4 digest_0.6.29 foreign_0.8-82
## [34] svglite_2.1.0 rmarkdown_2.13 base64enc_0.1-3
## [37] jpeg_0.1-9 pkgconfig_2.0.3 htmltools_0.5.2
## [40] highr_0.9 dbplyr_2.1.1 fastmap_1.1.0
## [43] htmlwidgets_1.5.4 rlang_1.0.2 readxl_1.3.1
## [46] rstudioapi_0.13 farver_2.1.0 jquerylib_0.1.4
## [49] generics_0.1.2 jsonlite_1.8.0 crosstalk_1.2.0
## [52] magrittr_2.0.2 Matrix_1.4-0 Rcpp_1.0.8.3
## [55] munsell_0.5.0 fansi_1.0.3 lifecycle_1.0.1
## [58] visdat_0.5.3 stringi_1.7.6 yaml_2.3.5
## [61] plyr_1.8.7 grid_4.1.3 crayon_1.5.1
## [64] haven_2.4.3 splines_4.1.3 hms_1.1.1
## [67] knitr_1.38 pillar_1.7.0 reprex_2.0.1
## [70] glue_1.6.2 evaluate_0.15 latticeExtra_0.6-29
## [73] data.table_1.14.2 modelr_0.1.8 png_0.1-7
## [76] vctrs_0.3.8 tzdb_0.2.0 cellranger_1.1.0
## [79] gtable_0.3.0 assertthat_0.2.1 xfun_0.30
## [82] broom_0.7.12 viridisLite_0.4.0 cluster_2.1.2
## [85] ellipsis_0.3.2