week10 additional notes#

Lab#

  1. Create from those data two samples (one training sample of size n = 120 and one test sample of size n = 30) by drawing randomly and without replacement 120 individuals that you assign to the training sample, while assigning the remaining 30 individuals to the test sample

  2. Use the package rpart to create a classification tree from the iris data, where the goal is to classify an iris flower to its iris variety, using the four explanatory variables.