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
Here is my sample code: library(haven) community_surveys <- read_sav("community_surveys.sav") diss_data <- as.data.frame(community_surveys) diss_data$F