I am trying to replace missing values in 15 ordinal variables using MICE. The variables are on a 5-point scale (level of agreement scale) that I effects coded from -2 to 2.
I thought the appropriate estimation method would be proportional odds model (polr), but I keep getting the following error: "Error in colMeans(as.matrix(imp[[j]]), na.rm = TRUE) :'x' must be numeric"
and the warning: "Imputation method polr is for categorical data"
. My data is ordered categorical data, so I am not sure why I am getting this error.
Here is my coding:
impute <- mice(Data, m=5, maxit=10, method='polr', seed=12)
where Data is a dataset with just the 15 ordinal variables.