Displaying 20 results from an estimated 57 matches for "eigs".
Did you mean:
egs
2006 Jul 21
3
positive semi-definite matrix
I have a covariance matrix that is not positive semi-definite matrix and I
need it to be via some sort of adjustment. Is there any R routine or
package to help me do this?
Thanks, Roger
[[alternative HTML version deleted]]
2008 Jun 03
3
matlab eigs function in R
Hello
Does anybody know how one can compute d largest eigenvalues/eigenvectors in
R, like in MATLAB eigs function ? eigen function computes all
eigenvectors/eigenvalues, and they are slightly different than those
generated by matlab eigs.
Thanks in advance
--
View this message in context: http://www.nabble.com/matlab-eigs-function-in-R-tp17619641p17619641.html
Sent from the R help mailing list arch...
2010 Feb 18
1
R-commands for MDS
Hello
I am using the following command but not able to text the values on the graph can
someone please make suggestions for improvement
#here is the command
loc_mds <- cmdscale(dist.r, k = 7, eig = TRUE)
loc_mds$eig
sum(abs(loc_mds$eig[1:2]))/sum(abs(loc_mds$eig))
sum((loc_mds$eig[1:2])^2)/sum((loc_mds$eig)^2)
x <-loc_mds$points[,1]
y <-loc_mds$points[,2]
plot(x, y,
2002 Jan 07
3
cluster - clusplot.default (PR#1249)
The following code in clusplot.default (package cluster) is in error:
x1 <- cmdscale(x, k = 2, eig = TRUE)
var.dec <- sum(x1$eig)/sum(diag(x1$x))
if (var.dec < 0)
var.dec <- 0
if (var.dec > 1)
var.dec <- 1
x1 <- x1$points
x1 has components with names "points" and "eig", not "x", so
2005 Jan 08
0
cmdscale problem
Dear R developers,
there appears to be a small problem with function cmdscale: for
non-Euclidean distance matrices, using option add=FALSE (the default),
cmdscale misses the smallest eigenvalue. This affects GOF statistic g.1
(See Mardia, Kent + Bibby (1979): Multivariate Analysis, eq. (14.4.7).
The corresponding formula in Cox + Cox (2001): Multidimensional Scaling,
2nd ed., p 38, would
2005 Dec 04
1
Understanding nonlinear optimization and Rosenbrock's banana valley function?
GENERAL REFERENCE ON NONLINEAR OPTIMIZATION?
What are your favorite references on nonlinear optimization? I like
Bates and Watts (1988) Nonlinear Regression Analysis and Its
Applications (Wiley), especially for its key insights regarding
parameter effects vs. intrinsic curvature. Before I spent time and
money on several of the refences cited on the help pages for "optim",
2004 Apr 19
0
R analog of Matlab "eigs" function
Hi,
I was wondering if anyone knew of an implementation of a function similar to
"eigs" in Matlab (full description here:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/eigs.html).
This function differs from the standard "eigen" in that it computes a *few*
eigenvectors for cases in which your matrix is very large and/or you don't
need all the eigenvect...
2008 Apr 01
1
superimpose histogram on biplot
Hi all,
I've been trying to figure out how to superimpose a histogram on a
biplot that shows the relative contribution of each axis. I have
been using the NIPALS function (http://biomserv.univ-lyon1.fr/~dray/
files/softwares/nipals.R) to run principal component analyses. Here
is a toy example.
source("http://biomserv.univ-lyon1.fr/~dray/files/softwares/nipals.R")
2003 Dec 01
1
matrix bending
Dear All,
I was wondering whether any one knows of a matrix bending function in
R that can turn non-positive definite matrices into the nearest
positive definite matrix. I was hoping there would be something akin
to John Henshall's flbend program
(http://agbu.une.edu.au/~kmeyer/pdmatrix.html), which allows the
standard errors of the estimated matrix elements to be considered in
the
2008 Jan 05
2
Cumulative sum of vector
Hi,
Maybe I have not been looking in the right spot, but, I have not been
able to fine a command to automatically calculate the running
cumulative sum of a vector. Is there such a command?
Example of current code:
> eig$values
[1] 678.365651 6.769697 2.853783
> prop<-eig$values/sum(eig$values)
> prop
[1] 0.986012163 0.009839832 0.004148005
>
2011 May 23
0
storing data from loops
...t;-s
#position of matrix where to substitute survival values
B[4,3]<-s
B[5,4]<-s
B[6,5]<-s
B[7,6]<-s
B[8,7]<-s
B[9,8]<-s
B[9,9]<-s
B[1,5]<-s*B[1,5]
#positions where to substitute fecundity values
B[1,6]<-s*B[1,6]
B[1,7]<-s*B[1,7]
B[1,8]<-s*B[1,8]
B[1,9]<-s*B[1,9]
eigs.B<-eigen(B)
#eigs.B
#obtain $values(growth rate) and $vectors(stable stage dist)
dom.pos<-which.max(eigs.B[["values"]])
#extract the dominant eigen value
L1<-Re(eigs.B[["values"]][dom.pos])
#extract only the real part of the eigenvalue (Re)
#L1
###ssd
dom.pos2<-which...
2008 Mar 03
1
Extracting data from Eigen function
Hi
I need to extract the data returned by Eigen to plot the eigenvectors.
However, when I try and eigv = eigen(covariance); it returns an object with
the matrices containing eigenvalues and vectors.. how can I extract the
eigenvector matrix from this??
When I try mat = eig["vectors"] it returns a matrix with the "$vectors"
string on top , how can I remove this?
code:
> eig
2006 Mar 13
0
wishlist: function mlh.mlm to test multivariate linear hypotheses of the form: LBT'=0 (PR#8680)
...object)
df.res <- ssd$df
rss.qr <- qr(T %*% ssd$SSD %*% t(T))
X <- as.matrix( model.matrix(object) )
B <- as.matrix( object$coef )
df <- nrow(L)
ss <- t(L %*% B) %*%
as.matrix(solve(L %*% solve(t(X) %*% X) %*% t(L))) %*%
(L %*% B)
eigs <- Re(eigen(qr.coef(rss.qr,
T %*% ss %*% t(T)),
symmetric = FALSE)$values)
test <- match.arg(test)
stats <- switch(test,
"Pillai" = Pillai(eigs, df, df.res),
&...
2003 Apr 03
2
Matrix eigenvectors in R and MatLab
Dear R-listers
Is there anyone who knows why I get different eigenvectors when I run
MatLab and R? I run both programs in Windows Me. Can I make R to produce
the same vectors as MatLab?
#R Matrix
PA9900<-c(11/24 ,10/53 ,0/1 ,0/1 ,29/43 ,1/24 ,27/53 ,0/1 ,0/1 ,13/43
,14/24 ,178/53 ,146/244 ,17/23 ,15/43 ,2/24 ,4/53 ,0/1 ,2/23 ,2/43 ,4/24
,58/53 ,26/244 ,0/1 ,5/43)
#R-syntax
2006 Dec 05
1
Cummulative Variance in Correspondence Analysis (ADE4)
Hi all:
How can I calculate the cumulative variance (or variance for each component)
in correspondence analysis?
If were possible in ADE4 package
Thank you
-- Antonio Punzón Merino
O__---- Instituto Español de Oceanografía
c/ /'_ --- Centro Oceanográfico de Santander
(*) \(*) -- Promontorio de San Martín S/N
~~~~~~~~~~ 39004-Santander; Spain
PO BOX: 240
Tlf: +34 942 29 10 60
Fax: +34
2005 Nov 04
1
Stress in multidimensional scaling
Hello,
We are trying to find a function to compute "stress" in our
multidimensional scaling analysis of a dissimilarity matrix. We've used
"dist()" to create the matrix and "cmdscale()" for the scaling. In order
to determine the number of dimensions we would like to plot stress vs.
dimensions. However, we cannot find a pre-made command. It seems that
other
2012 Mar 15
0
PCA R
Hello can anyone help,
I have been running the following script to obtain a PCA plot but the end result is rather disappointing as the points are very very small and there are no titles etc
geochemdata<-read.csv(file.choose(),header=TRUE)
names(geochemdata)
library(vegan)
bstick<-function(n, tot.var=1) rev(cumsum(tot.var/n:1)/n)
geopca<-rda(geochemdata, scale=TRUE)
geopca
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
2009 Dec 01
1
eigenvalues of complex matrices
...ant to compute the eigenvalues of a complex matrix for some statistics.
Comparing it to its matlab/octave sibling, I don't get the same eigenvalues
in R computing it from the exact same matrix.
In R, I used eigen() and arpack() that give different eigenvalues. In
matlab/octave I used eig() and eigs() that give out the same eigenvalues but
different to the R ones.
For real matrices, R and matlab/octave are consistent.
Does anybody know what could go on here and how I could get consistent
eigenvalues in R? Since I definitely want to do the analysis in R.
Many thanks,
David
[[alternative HTM...
2012 Apr 19
3
Solve an ordinary or generalized eigenvalue problem in R?
Folks:
I'm trying to port some code from python over to R, and I'm running into a
wall finding R code that can solve a generalized eigenvalue problem
following this function model:
http://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.eig.html
Any ideas? I don't want to call python from within R for various reasons,
I'd prefer a "native" R solution if one