I had the following dataset
library(MASS)
install.packages("gclus")
data(wine)
View(wine)
install.packages("car")
I wanted to split it according to the proportions 70:30 into a training and a test set. Also I wanted to carry out LDA for the following data subsets
wine[c("Class", "Malic", "Hue", "Magnesium")]
wine[c("Class","Hue", "Alcalinity", "Phenols", "Malic", "Magnesium", "Intensity", "Nonflavanoid","Flavanoids")]
Lastly, I was using the function predict to predict the class memberships for the test data, and compare the predictions with the true class memberships.
I am getting some errors while doing it, so any help would be appreciated.