I tried discriminant analysis with lda() in R and in SPSS, but the scalings were different, why?
N, how to get (Constant) with R like SPSS result?
data:
head(data)
ï..smoke age selfcon anxiety absence subtestb
1 1 36 42 17 3 30
2 1 45 45 21 0 29
3 1 43 36 13 8 23
4 2 25 25 23 14 20
5 2 36 32 25 9 16
6 2 25 19 27 5 20
lda() result
lda(x,cl)$scaling
LD1
age -0.0237009
selfcon -0.0800297
anxiety 0.0999290
absence 0.0115092
subtestb -0.1341198
SPSS result:
age .024
selfcon .080
anxiety score −.100
absence −.012
subtestb .134
(Constant) −4.543