Missing Values

Scale

  • Normalize data
x y
-1.1183228 -0.5969299
-0.5083286 0.5050945
-0.2033314 -0.2295884
NA 0.5050945
1.3216543 NA
1.9316486 -1.3316128
0.1016657 NA
-0.8133257 -0.5969299
-0.5083286 -0.2295884
-0.2033314 1.9744604
x y x_scaled y_scaled
1 2 -1.1183228 -0.5969299
3 5 -0.5083286 0.5050945
4 3 -0.2033314 -0.2295884
NA 5 NA 0.5050945
9 NA 1.3216543 NA
11 0 1.9316486 -1.3316128
5 NA 0.1016657 NA
2 2 -0.8133257 -0.5969299
3 3 -0.5083286 -0.2295884
4 9 -0.2033314 1.9744604
a Center: 4.66666666666667, 3.625
Scale: 3.278719262151, 2.7222627143085

Add Missing Indicator to Categorical Variables

var1 var1_addno
A A
B B
B B
A A
A A
A A
B B
NA Not Obtained
NA Not Obtained
A A
B B
A A
NA Not Obtained
A A
A A
NA Not Obtained
A A
B B
NA Not Obtained
NA Not Obtained

Model Matrix

Create Model Matrix

(Intercept) var1 var2 var3B var3C
1 0.6485844 0.6012734 0 0
1 1.0545471 0.6124488 0 1
1 -0.0605774 -1.6417764 0 1
1 0.2783176 -0.0261029 0 1
1 0.1007118 -1.2214508 0 0
1 -1.5420850 0.8414364 0 1
1 0.7126378 -0.0704835 0 1
1 -1.1198959 0.1284165 1 0
1 0.5025232 -0.2975466 0 1
1 1.0203244 0.1325537 1 0

Multiple Imputation

iter imp variable 1 1 x y x2 y2 1 2 x y x2 y2 2 1 x y x2 y2 2 2 x y x2 y2 3 1 x y x2 y2 3 2 x y x2 y2 4 1 x y x2 y2 4 2 x y x2 y2 5 1 x y x2 y2 5 2 x y x2 y2

.imp .id x y noise1 noise2 x2 y2
1 1 1 2 0.8344601 0.0576060 2.166892 4.0192020
1 2 3 5 1.3124155 -0.7350429 6.787449 9.7549857
1 3 4 3 2.5026454 0.9305284 10.002116 6.3101761
1 4 3 5 1.1682317 1.6682110 8.886050 10.5560703
1 5 9 2 -0.4261656 0.5596879 17.232902 -0.2513249
1 6 11 0 -0.9961298 -0.7539748 19.808515 -0.2513249
1 7 5 2 -1.1139499 1.2565542 8.886050 6.0631799
1 8 2 2 -0.0557315 0.0384925 3.977707 4.0128308
1 9 3 3 1.1744324 0.1895398 6.704659 6.0631799
1 10 4 9 1.0532186 0.4625950 8.842575 18.1541983
2 1 1 2 0.8344601 0.0576060 2.166892 4.0192020
2 2 3 5 1.3124155 -0.7350429 6.787449 9.7549857
2 3 4 3 2.5026454 0.9305284 10.002116 6.3101761
2 4 3 5 1.1682317 1.6682110 8.886050 10.5560703
2 5 9 3 -0.4261656 0.5596879 17.232902 10.5560703
2 6 11 0 -0.9961298 -0.7539748 19.808515 -0.2513249
2 7 5 3 -1.1139499 1.2565542 8.886050 9.7549857
2 8 2 2 -0.0557315 0.0384925 3.977707 4.0128308
2 9 3 3 1.1744324 0.1895398 6.704659 6.0631799
2 10 4 9 1.0532186 0.4625950 8.842575 18.1541983

R sessionInfo

R version 4.2.0 (2022-04-22) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04.3 LTS

Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

locale: [1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8
[4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8
[7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] mice_3.14.0 Wu_0.0.0.9000 flexdashboard_0.6.0 [4] lme4_1.1-30 Matrix_1.4-0 mgcv_1.8-38
[7] nlme_3.1-152 png_0.1-7 scales_1.2.0
[10] nnet_7.3-16 labelled_2.9.1 kableExtra_1.3.4
[13] plotly_4.10.0 gridExtra_2.3 ggplot2_3.3.6
[16] DT_0.24 tableone_0.13.2 magrittr_2.0.3
[19] lubridate_1.8.0 dplyr_1.0.9 plyr_1.8.7
[22] data.table_1.14.2 rmdformats_1.0.4 knitr_1.39

loaded via a namespace (and not attached): [1] httr_1.4.4 sass_0.4.2 tidyr_1.2.0 jsonlite_1.8.0
[5] viridisLite_0.4.0 splines_4.2.0 bslib_0.4.0 assertthat_0.2.1 [9] highr_0.9 yaml_2.3.5 backports_1.4.1 pillar_1.8.1
[13] lattice_0.20-45 glue_1.6.2 digest_0.6.29 rvest_1.0.2
[17] minqa_1.2.4 colorspace_2.0-3 htmltools_0.5.3 survey_4.1-1
[21] pkgconfig_2.0.3 broom_1.0.0 haven_2.5.0 bookdown_0.28
[25] purrr_0.3.4 webshot_0.5.3 svglite_2.1.0 tibble_3.1.8
[29] generics_0.1.3 ellipsis_0.3.2 cachem_1.0.6 withr_2.5.0
[33] klippy_0.0.0.9500 lazyeval_0.2.2 cli_3.3.0 survival_3.2-13
[37] evaluate_0.16 fansi_1.0.3 MASS_7.3-54 forcats_0.5.1
[41] xml2_1.3.3 tools_4.2.0 hms_1.1.1 mitools_2.4
[45] lifecycle_1.0.1 stringr_1.4.0 munsell_0.5.0 compiler_4.2.0
[49] jquerylib_0.1.4 systemfonts_1.0.4 rlang_1.0.4 grid_4.2.0
[53] nloptr_2.0.3 rstudioapi_0.13 htmlwidgets_1.5.4 rmarkdown_2.14
[57] boot_1.3-28 gtable_0.3.0 DBI_1.1.3 R6_2.5.1
[61] fastmap_1.1.0 utf8_1.2.2 stringi_1.7.8 Rcpp_1.0.9
[65] vctrs_0.4.1 tidyselect_1.1.2 xfun_0.32