Displaying 3 results from an estimated 3 matches for "eigval".
Did you mean:
sigval
2010 Jan 11
3
Eigenvectors and values in R and SAS
Hi,
I was wondering if function eigen() does something different from the
function call eigen() in SAS.
I'm in the process of translating a SAS code into a R code and the values of
the eigenvectors and eigenvalues of a square matrix came out to be different
from the values in SAS.
I would also appreciate it if someone can explain the difference in simple
terms. I'm pretty new to both
2004 Dec 03
3
Computing the minimal polynomial or, at least, its degree
Hi,
I would like to know whether there exist algorithms to compute the
coefficients or, at least, the degree of the minimal polynomial of a square
matrix A (over the field of complex numbers)? I don't know whether this
would require symbolic computation. If not, has any of the algorithms been
implemented in R?
Thanks very much,
Ravi.
P.S. Just for the sake of completeness, a
2013 Nov 25
0
Hey guys
...t to see
Lab10.pdf
This is my code
dat <-read.delim("~/Dropbox/Homework/R Studio/geneExpression_Lab10.txt", header=F)
dat <- as.matrix(dat)
dat <- t(as.matrix(dat))
covmat <-cov(dat) #Error: is.numeric(x) || is.logical(x) is not TRUE
eigvec <- eigen(covmat)$vectors
eigval <- eigen(covmat)$values
eigvec
adjusted.dat <- sapply(1:ncol(dat), function(i) dat[,i]- mean(dat[,i]))
new.dat <- adjusted.dat %*% eigvec
plot(new.dat)
cov(new.dat)