Question: anyone who knows R programming? actually i need to develop Knn model for 3 predictors age, gender01 and from_second_store_sales. I have converted the colums into

anyone who knows R programming? actually i need to develop Knn model for 3 predictors age, gender01 and from_second_store_sales. I have converted the colums into numerical but still im getting error.

anyone who knows R programming? actually i need to develop Knn model

### Task 3.3: Developing a KNN model Use age, gender and from_second_store_sales to develop a KNN model to classify consumer into low and high loyalty status for different values of k. Choose k to be equal to 1, 10 and 40. Please set seed to 1234. Note that the KnC) function only takes numeric variables. Make sure you make necessary transformations before using KnnC). ## k = 1 I4 \"'{r knnl} set.seed(1234) # used when we want to reproduce results. #transformation of column into numeric shopco$gender01

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!