Skip to content

Linear Discriminant Analysis error: "Variables appear constant"

4 messages · Songer, Katherine B - DNR, Uwe Ligges

#
On 16.05.2011 22:07, Songer, Katherine B - DNR wrote:
We do not know, since we do not have the data.
Yes, colinear variables should be removed. Note als, that you have 
roughly as many (or even more) variables in the model than observations. 
This won't work either. I think you should read some textbook on the 
mechanisms behind an LDA.

Uwe Ligges
#
Uwe,

Thank you very much for looking at this. I'm attaching the data, in case you have any wisdom on why variables 10, 38, and 42 would appear constant. Meanwhile, I'll remove colinear variables and read up a little more...

Thanks,
Katie

-----Original Message-----
From: Uwe Ligges [mailto:ligges at statistik.tu-dortmund.de] 
Sent: Tuesday, May 17, 2011 04:25 AM
To: Songer, Katherine B - DNR
Cc: r-help at r-project.org
Subject: Re: [R] Linear Discriminant Analysis error: "Variables appear constant"
On 16.05.2011 22:07, Songer, Katherine B - DNR wrote:
We do not know, since we do not have the data.
Yes, colinear variables should be removed. Note als, that you have roughly as many (or even more) variables in the model than observations. 
This won't work either. I think you should read some textbook on the mechanisms behind an LDA.

Uwe Ligges
#
- Reduce the model to a reasonable size with far less variables than 
observations.
- Code factors as factors rather than numerics
- don't use variables with perfect correlation to other nor any duplicates

Best,
Uwe Ligges
On 17.05.2011 15:46, Songer, Katherine B - DNR wrote: