I am trying to apply MICE function to impute the missing data of my dataset. I am using the following code:
tempData <- mice(Datos_Final,m = 5, method="cart", maxit = 5 , seed = 500) summary(tempData)
When executing it, I get the following error message which I am not able to figure out how to deal with:
Error in str2lang(x) : :1:51: unexpected input 1: País ~ Indice+FAANG+Profit_M+ROE_BT+ROE_NI+ROCE_BT ^...
Searching in internet, it seems it has to be with legnth of the names of the columns (variables: Indice, FAAN, .. . I am using more than 20 variables). Any help on this is more than welcome.
Best regards