Displaying 2 results from an estimated 2 matches for "ld1est".
Did you mean:
dest
2009 Sep 29
1
help with lda function from MASS package
...V1
> [1,] 0.7656185
> [2,] 0.8712707
> [3,] 1.1192567
> [4,] 0.3092117
> [5,] -1.3622976
> [6,] -0.8391481
> [7,] -0.8639119
> attr(,"scaled:center")
> V1
> 151.233
> attr(,"scaled:scale")
> V1
> 17.23484
>
> > LD1est <- read.table(textConnection(" LD1
> + 1 -2.3769280
> + 2 -2.7049437
> + 3 -3.4748309
> + 4 -0.9599825
> + 5 4.2293774
> + 6 2.6052193
> + 7 2.6820884"), header=T)
>
>
> > scale(LD1est)
> LD1
> 1 -0.7656170
> 2 -0.8712721
> 3 -1.1...
2009 Sep 28
1
help with lda function
I am having a problem understanding the lda package. I have a dataset here:
[,1] [,2] [,3]
[1,] 2.95 6.63 0
[2,] 2.53 7.79 0
[3,] 3.57 5.65 0
[4,] 3.16 5.47 0
[5,] 2.58 4.46 1
[6,] 2.16 6.22 1
[7,] 3.27 3.52 1
If I do the following;
"names(d)<-c("y","x1","x2")
d$x1 = d$x1 * 100
d$x2 = d$x2 * 100
g<-lda( y ~ x1 + x2, data=d)
v2