0

I just wanted to learn how to deal with missing value. I found the mice package, but if I run install.package and library R cannot find md.pattern. Does anybody know why?

install.packages("mice")
library(mice)

md.pattern(data)

Error in md.pattern(data) : could not find function "md.pattern"

library(mice)

Loading required package: lattice
Error: package or namespace load failed for ‘mice’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘minqa’
In addition: Warning message:
package ‘mice’ was built under R version 3.4.4

slamballais
  • 3,161
  • 3
  • 18
  • 29
Dezdi
  • 11
  • 6
  • Possible duplicate of [Error: could not find function ... in R](https://stackoverflow.com/questions/7027288/error-could-not-find-function-in-r) – divibisan Mar 21 '19 at 21:37
  • Can you post output of `sessionInfo()` – IRTFM Mar 22 '19 at 01:14
  • library(mice) Loading required package: lattice Error: package or namespace load failed for ‘mice’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘minqa’ In addition: Warning message: package ‘mice’ was built under R version 3.4.4 md.pattern(iris.mis) Error in md.pattern(iris.mis) : could not find function "md.pattern" – Dezdi Mar 23 '19 at 20:47
  • I think something goes wrong when I do the library – Dezdi Mar 23 '19 at 20:48

1 Answers1

1

Search mice from the part where we installed all packages and ☑️mice from the packages .it will work.