I am trying to do impute some data using random forest using the mice
package but it throws an error. Why?
library(mice)
library(tidyverse)
library(dplyr)
Random forest
will be thebest fit to impute this particular data
[31] mice.impute.rf
Use mice
function produces an error
imputed_data <- mice(data, m = 5, method = "rf")
Error in get(".Random.seed", envir = globalenv(), mode = "integer", inherits = FALSE):object '.Random.seed' of mode 'integer' was not found
summary(imputed_data)
Error in summary(imputed_data) : object 'imputed_data' not found
This is when I run into my error and I have no clue how to fix it. If anyone can help me, and explain what this means in the most basic terms, I would greatly appreciate it. I posted the error message after the tried to do the impute random forest.