Raking Multiple Imputed dataset
问题 This is a continuation from my previous post Error with svydesign using imputed data sets I would like to run a rake() function in my imputed dataset. However, it seems it is not finding the input variable. Below is a sample code: library(mitools) library(survey) library(mice) data(nhanes) nhanes2$hyp <- as.factor(nhanes2$hyp) imp <- mice(nhanes2,method=c("polyreg","pmm","logreg","pmm"), seed = 23109) imp_list <- lapply( 1:5 , function( n ) complete( imp , action = n ) ) des<-svydesign(id=~1,