library("lattice")
library("VIM")
library("mice")
library("BaylorEdPsych")
library("mice")
data <- read.csv("data.csv", na.strings = "", head = TRUE)
data <- read.csv("data.csv", na.strings = "", stringsAsFactors=FALSE, head = TRUE)
attach(data)
fix(data)
LittleMCAR(data[c(-1)])
以下代码为我提供了本征错误(样本,对称= TRUE):
'x'中的无限或缺失值
此外:警告消息:
在data.matrix(x)中:强制引入的NAs
我想检查数据中的缺失(第9列,第1列):
学生,计划,年级,测试1,测试2,结果
1,EcoMgt,1,54,35,40.7
2,EcoMgt,1,32,15,22.1
3,EcoFin,1,96,95,91.6
4,EcoMgt,1,70,65,62.1
5,EcoMgt,1,42,45,32.2
6,EcoMgt,2,44,35,38.5
7,EcoFin,1,90,70,80
8,EcoFin,1,54,70,66.4
9,EcoFin,1,96,90,NA