Displaying 1 result from an estimated 1 matches for "predict0".
Did you mean:
  predict
  
2000 Apr 28
1
obtaining the discriminant line from lda
...f linear discriminants:
            LD1
value 0.0357248
> XY.lda$svd
[1] 55.63543
> XY.lda$class
NULL
> XY.lda$posterior
NULL
Question #1: How do I obtain the line that lda thinks divides the
two groups?  (which here it is between 1 and 2.)
Next I load in a test set for prediction:
> Predict0
   value
1    -10
2     -9
3     -8
4     -7
5     -6
6     -5
7     -4
8     -3
9     -2
10    -1
11     0
12     1
13     2
14     3
15     4
16     5
17     6
18     7
19     8
20     9
21    10
> Predict0.lda <- predict(XY.lda,Predict0)
> Predict0.lda$class
 [1] -1 -1 -1 -1 -1 -1 -1 -...