I'm trying to impute missing data with the "mi" package in r and I keep getting an error on all my variables
My code:
mdf <- missing_data.frame(data.frame)
Error I get:
Error in .guess_type(y, favor_ordered, favor_positive, threshold, variable_name) : age : must be a vector
When I check type:
typeof(data.frame$age)
I get:
[1] "double"
Anyone know the best way to fix this?