0

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

MGF
  • 11
  • 1
  • Welcome to stack overflow. Could you include the minimal code including data that causes the problem? [Check out this useful guidance for asking questions] (https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) – Peter Dec 07 '21 at 12:59

0 Answers0