[R] Spectral decomposition

Marcos Sanches marcos_sanches at gallup.com
Mon Mar 11 15:22:19 CET 2002


	Hello all,

    I have the square symetric matrix A:
2 1 1
1 2 1
1 1 2
  My first question is what is the easiest way to enter this matriz in R?
Second, matrix A has an eigenvalue with multiplicity 2, in this case, how
could I find the two related ortogonal eigenvectors given below by R,
without the help of R, I mean, I want to know how R calculate this
eigenvectors related to the same eigenvalue.

> evalor<-eigen(A)
> evalor
$values
[1] 4 1 1

$vectors
          [,1]       [,2]        [,3]
[1,] 0.5773503  0.8161298  0.02447130
[2,] 0.5773503 -0.3868721 -0.71902477
[3,] 0.5773503 -0.4292577  0.69455348

Thanks very much,

Marcos


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list