Hello,

I want to make a linear discriminant analysis for the dataset olive, and I
get always this error:#
Warning message:
variables are collinear in: lda.default(x, grouping, ...)

## Loading Data
library(MASS)
olive <- url("
http://www.statistik.tuwien.ac.at/public/filz/students/multi/ss07/olive.R")
print(load(olive))

y <- 1:572
x <- sample(y)
y1 <- x[1:286]

train <- olive[y1,-11]
test  <- olive[-y1,-11]

summary(train)
summary(test)

table(train$Region)
table(test$Region)

# Linear Discriminant Analysis
z <- lda(Region ~ . , train)
predict(z, train)

z <- lda(Region ~ . , test)
predict(z, test)

Thanks in advance!

-- 
Mit freundlichen Grüssen / Best Regards

Soare Marcian-Alin

	[[alternative HTML version deleted]]

