Question: Repeat the following 100 times : . Simulate 6 datasets via gen_datasets (). . For each dataset, use 80% of the data as the training


Repeat the following 100 times : . Simulate 6 datasets via gen_datasets (). . For each dataset, use 80% of the data as the training set and the remaining 20% as the test set . . Fit logistic regression, LDA, QDA, k-NN with 1 neighbor , and k-NN -CV using the training set . - logistic regression : glm () from "stats " - LD A: 1da () from "MASS " - QDA: qda ( ) from "MASS " - k-NN : knn ( ) from "class "
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
