Displaying 20 results from an estimated 6000 matches similar to: "sum of squared loadings after varimax?"
1998 Aug 26
0
prcomp & princomp - revised
My previous post about prcomp and princomp was done in some haste as I had long
ago indicated to Kurt that I would try to have this ready for the June release,
and it appeared that I would miss yet another release. I also need to get it out
before it becomes hopelessly buried by other work.
Brian Ripley kindly pointed out some errors, and also pointed out that I was
suggesting replacing some
2010 Nov 10
2
prcomp function
Hello,
I have a short question about the prcomp function. First I cite the
associated help page (help(prcomp)):
"Value:
...
SDEV the standard deviations of the principal components (i.e., the square
roots of the eigenvalues of the covariance/correlation matrix, though the
calculation is actually done with the singular values of the data matrix).
ROTATION the matrix of variable loadings
2004 Feb 17
1
Comparison of % variance explained by each PC before AND after rotation
Hello again-
Thanks to Prof. Ripley for responding to my previous question.
I would like to clarify my question using sample code. I will use some
sample code taken from ?prcomp
Again, I would like to compare the % variance explained by each PC
before and after rotation.
< code follows >
data(USArrests)
pca = prcomp(USArrests, scale = TRUE)
# proportion variance explained by each
2011 Jan 26
1
Factor rotation (e.g., oblimin, varimax) and PCA
A bit of a newbee to R and factor rotation I am trying to understand
factor rotations and their implementation in R, particularly the
GPArotation library.
I have tried to reproduce some of the examples that I have found, e.g., I
have taken the values from Jacksons example in "Oblimin Rotation",
Encyclopedia of Biostatistics
2013 Mar 14
2
Same eigenvalues but different eigenvectors using 'prcomp' and 'principal' commands
Dear all,
I've used the 'prcomp' command to
calculate the eigenvalues and eigenvectors of a matrix(gg).
Using the command 'principal' from the
'psych' packageĀ I've performed the same exercise. I got the same
eigenvalues but different eigenvectors. Is there any reason for that
difference?
Below are the steps I've followed:
1. PRCOMP
#defining the matrix
2004 Nov 03
2
Princomp(), prcomp() and loadings()
In comparing the results of princomp and prcomp I find:
1. The reported standard deviations are similar but about 1% from
each other, which seems well above round-off error.
2. princomp returns what I understand are variances and cumulative
variances accounted for by each principal component which are
all equal. "SS loadings" is always 1.
3. Same happens
2012 Aug 15
0
color-coding of biplot points for varimax rotated factors (from PCA)
I'm using R for PCA and? factor analysis. I want to create biplots of
varimax rotated factors that color-code points by their
classification. My research is on streams that are urban and rural.
So, I want to color code them by this classification. If you just do a
biplot from prcomp or princomp, you cannot add this color. So, I have
used some code developed by a graduate student in our
2000 Jun 15
1
prcomp help: is this a typo?
Dear All,
The help for prcomp, under "Value" says:
sdev: the standard deviation of the principal components (i.e., the
eigenvalues of the cov matrix, though the calculation is
actually done with the singular values of the data matrix).
The way I read it, it implies that the sdev are the eigenvalues, but I think
that sdev is actually the square root of the
2005 Oct 13
2
varimax rotation difference between R and SPSS
Hi,
I am puzzeled with a differing result of princomp in R and FACTOR in
SPSS. Regarding the amount of explained Variance, the two results are
the same. However, the loadings differ substantially, in the unrotated
as well as in the rotated form.
In both cases correlation matrices are analyzed. The sums of the squared
components is one in both programs.
Maybe there is an obvious reason, but I
2009 Jan 13
1
PCA loadings differ vastly!
hi, I have two questions:
#first (SPSS vs. R):
I just compared the output of different PCA routines in R (pca, prcomp,
princomp) with results from SPSS. the loadings of the variables differ
vastly! in SPSS the variables load constantly higher than in R.
I made sure that both progr. use the correlation matrix as basis. I
found the same problem with rotated values (varimax rotation and rtex=T
2012 Jun 20
1
prcomp: where do sdev values come from?
In the manual page for prcomp(), it says that sdev is "the standard
deviations of the principal components (i.e., the square roots of the
eigenvalues of the covariance/correlation matrix, though the
calculation is actually done with the singular values of the data
matrix)." ?However, this is not what I'm finding. ?The values appear
to be the standard deviations of a reprojection of
2000 Apr 26
1
Factor Rotation
How does one rotate the loadings from a principal component analysis?
Help on function prcomp() from package mva mentions rotation:
Arguments
retx a logical value indicating whether the rotated
variables should be returned.
Values
rotation the matrix of variable loadings (i.e., a matrix
whose olumns contain the eigenvectors). The
function princomp returns this in the element
2000 Jun 14
2
Typo in the documentation of prcomp. (PR#569)
The help for prcomp on R 1.0.0 states that the component sdev of the
return value is the eigenvalues of the cov matrix. Am I completely
mistaken, or should this be the _square root_ of the eigenvalues?
Also, the documentation is not very clear about how tol is used to omit
components. (The _code_ is clear, though. :-)
--
B/H
2011 Dec 24
1
extract factor scores post-varimax
Hello all,
I've run a principal component regression using the PLS package. I then
applied varimax rotation (i.e., using
http://stat.ethz.ch/R-manual/R-patched/library/stats/html/varimax.html). I
cannot figure out how to extract the factor loadings post-varimax. Is
there a command to do this? scores(x) does not do it.
Thanks and happy holidays
--
View this message in context:
2009 Mar 31
3
Factor Analysis Output from R and SAS
Dear Users,
I ran factor analysis using R and SAS. However, I had different outputs from
R and SAS.
Why they provide different outputs? Especially, the factor loadings are
different.
I did real dataset(n=264), however, I had an extremely different from R and
SAS.
Why this things happened? Which software is correct on?
Thanks in advance,
- TY
#R code with example data
# A little
2009 Nov 25
1
which to trust...princomp() or prcomp() or neither?
According to R help:
princomp() uses eigenvalues of covariance data.
prcomp() uses the SVD method.
yet when I run the (eg., USArrests) data example and compare with my own
"hand-written" versions of PCA I get what looks like the opposite.
Example:
comparing the variances I see:
Using prcomp(USArrests)
-------------------------------------
Standard deviations:
[1] 83.732400 14.212402
2009 Nov 09
4
prcomp - principal components in R
Hello, not understanding the output of prcomp, I reduce the number of
components and the output continues to show cumulative 100% of the
variance explained, which can't be the case dropping from 8 components
to 3.
How do i get the output in terms of the cumulative % of the total
variance, so when i go from total solution of 8 (8 variables in the data
set), to a reduced number of
2006 May 25
1
PC rotation question
On p. 48 of "Statistics Complements" to the 3rd MASS edition,
http://www.stats.ox.ac.uk/pub/MASS3/VR3stat.pdf
I read that the orthogonal rotations of Z Lambda^-1 remain
uncorrelated, where Z is the PC and Lambda is the diag matrix of
singular values.
However, the example below that text is
> A <- loadings(ir.pca) %*% diag(ir.pca$sdev)
If ir.pca$sdev are the singular values,
2012 Oct 19
1
factor score from PCA
Hi everyone,
I am trying to get the factor score for each individual case from a principal component analysis, as I understand, both princomp() and prcomp() can not produce this factor score, the principal() in psych package has this option: scores=T, but after running the code, I could not figure out how to show the factor score results. Here is my code, could anyone give me some advice please?
2002 Sep 03
0
RE:
It may depend on which decomposition method you are using, princomp uses
eigen whereas prcomp use svd. What does Statistica use?
-----Original Message-----
From: Williams, Allyson
Sent: Tuesday, 3 September 2002 10:20 AM
To: r-help at stat.math.ethz.ch
Subject:
Hello,
I'm doing a pca analysis and get unrotated PCA results (using "pca").
I then used "varimax" to