newdata <- mice(data = newdata, m = 5, method = "pmm", seed = 500) iter imp variable 1 1 1996-01-31Error in terms.formula(tmp, simplify = TRUE) : invalid model formula in ExtractVars