1. Write an R function that finds the best model of kNN method based on a v-
fold cross validation of any given value of v.
2. Apply the kNN method to the entire data set of the Home Equity Loan
data. Find the best value of k using the cross validation error.
3. Split randomly the Home Equity Loan data into 3 parts (50% training, 25%
validating, and 25% testing). Repeat this 10 times and compare the
training, validating, and testing error of (i) the logistic regression model,
and (ii) the tree model. Compare the results.