Category "r-mice"

Custom imputation function for MICE stopped working

Last year I used info from this question to build a custom function to impute missing data under a simple logical constraint using MICE in R. The following code

Error: `t.haven_labelled()` not supported while attempting MICE package in R

Here is my sample code: library(haven) community_surveys <- read_sav("community_surveys.sav") diss_data <- as.data.frame(community_surveys) diss_data$F