In simplify, `drop` may be undefined
johnbaums opened this issue · comments
if (sum(pct == pct[1]) > 1) {
candidates <- subset(vif, Variables %in% names(pct)[pct ==
pct[1]])
drop <- as.character(candidates$Variables[which.max(candidates$VIF)])
}
message("Dropping ", drop)
If condition is FALSE, drop
will not exist.