I have a problem with my dataset. I want to impute missing data for categorial variables (Age, Gender) but receive an error message.
This is what I have done
Brave.ger$ID <- as.numeric(Brave.ger$ID)
Publisher Category <- as.factor(Brave.ger$
Brave.ger$Gender <- as.factor(Brave.ger$Gender)
Brave.ger$Age <- as.factor(Brave.ger$Age)
Brave.ger$Geography <- as.factor(Brave.ger$Geography)
Brave_test <- mice(Brave.ger, m=5, maxit = 50, method = ‘polyreg’, seed = 500)
unable to find an inherited method for function ‘complete’ for signature ‘“mids”, “numeric”’
Could you help me to find a solution? I uploaded the dataset for a better understanding.
Thanks in advance!Mappe3.xls.zip (17.5 KB)