I am new to R. I am trying to implement a LDA algorithm in my dataset. But I have 33 attributes. I have to choose some of them. I did this:
fit <- lda(G3 ~ school+ sex + age + address + famsize + Pstatus + Medu + Fedu +
Mjob + Fjob + reason + guardian + traveltime + studytime + failures +
schoolsup + famsup + paid + activities + nursery + higher + internet +
romantic + famrel + freetime + goout + Dalc + Walc + health + absences +
G1 + G2, data=d1)
G3 has 20 different groups.
I know that in linear regression I can look to p-value in each attribute and choose the ones with the best p-value. Can someone tell me what can I do in LDA case?