Using the R MASS package to do a linear discriminant analysis, is there a way to get a measure of variable importance?
Library(MASS)
### import data and do some preprocessing
fit <- lda(cat~., data=train)
I have is a data set with about 20 measurements to predict a binary category. But the measurements are hard to obtain so I want to reduce the number of measurements to the most influential.
When using rpart or randomForests I can get a list of variable importance, or a gimi decrease stat using summary() or importance().
Is there a built in function to do this that I cant find? Or if I have to code one, what would be a good way to go about it?