Category "r-mice"

Error in R using imputed data : Error in `[<-.data.frame`(`*tmp*`, j, value = c() replacement has 165 rows, data has 163

I am trying to add a column in an imputed dataset (I used mice). I managed to transform the imputed dataset in a dataframe, add the column that comes from anoth

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