As explained in one of the analyticsvidhya page to impute missing values by MICE package,I tried similar steps but getting some error.
#imputing missing value
imputed_Data <- mice(train.im, m=5, maxit = 50, method = ‘pmm’, seed = 100)
#get complete data ( 2nd out of 5)
completeData <- complete(imputed_Data,2)
And below is the error i m getting
Error in (function (classes, fdef, mtable) : **
** unable to find an inherited method for function ‘complete’ for signature ‘“mids”’
Can someone help ?